aboutsummaryrefslogtreecommitdiff
path: root/py/mkrules.mk
diff options
context:
space:
mode:
authorDamien George2018-04-10 15:06:47 +1000
committerDamien George2018-04-10 15:06:47 +1000
commitef12a4bd05cdd531d9c130763ffb2470e9c0fb54 (patch)
tree94d7766955f9de3e3553e3f44afcd898aa7962cb /py/mkrules.mk
parent5ad27d4b8bb248954d98178e068a382599dadfa6 (diff)
py: Refactor how native emitter code is compiled with a file per arch.
Instead of emitnative.c having configuration code for each supported architecture, and then compiling this file multiple times with different macros defined, this patch adds a file per architecture with the necessary code to configure the native emitter. These files then #include the emitnative.c file. This simplifies emitnative.c (which is already very large), and simplifies the build system because emitnative.c no longer needs special handling for compilation and qstr extraction.
Diffstat (limited to 'py/mkrules.mk')
-rw-r--r--py/mkrules.mk5
1 files changed, 1 insertions, 4 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk
index fa7138695..850c2aa3a 100644
--- a/py/mkrules.mk
+++ b/py/mkrules.mk
@@ -46,10 +46,7 @@ vpath %.c . $(TOP)
$(BUILD)/%.o: %.c
$(call compile_c)
-# List all native flags since the current build system doesn't have
-# the MicroPython configuration available. However, these flags are
-# needed to extract all qstrings
-QSTR_GEN_EXTRA_CFLAGS += -DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB -DN_ARM -DN_XTENSA
+QSTR_GEN_EXTRA_CFLAGS += -DNO_QSTR
QSTR_GEN_EXTRA_CFLAGS += -I$(BUILD)/tmp
vpath %.c . $(TOP)