mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
package/micropython: use append-assignment in conditional code
Since its inception in9646e80fca(micropython: new package), the ppc-specific CFLAGS are simply assigned, and since9fd9f4e675(package/micropython: define MICROPY_NLR_SETJMP for xtensa), the same goes for the xtensa CFLAGS. Although they are mutually exclusive (different archs) and that there is no prior assignment, the customs are to use append assignment in conditional blocks, to avoid accidentally overwriting a valure set previously. Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Chris Packham <judge.packham@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commitbe4fb117bc) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
9efd1a9ea8
commit
01302c25c5
@@ -21,12 +21,12 @@ MICROPYTHON_IGNORE_CVES += CVE-2024-8947
|
||||
# Use fallback implementation for exception handling on architectures that don't
|
||||
# have explicit support.
|
||||
ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),)
|
||||
MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1
|
||||
MICROPYTHON_CFLAGS += -DMICROPY_GCREGS_SETJMP=1
|
||||
endif
|
||||
|
||||
# xtensa has problems with nlr_push, use setjmp based implementation instead
|
||||
ifeq ($(BR2_xtensa),y)
|
||||
MICROPYTHON_CFLAGS = -DMICROPY_NLR_SETJMP=1
|
||||
MICROPYTHON_CFLAGS += -DMICROPY_NLR_SETJMP=1
|
||||
endif
|
||||
|
||||
# https://github.com/micropython/micropython/issues/14115
|
||||
|
||||
Reference in New Issue
Block a user