From f6d1b63ecde084dbe44d354ae9a69b1f915a40dc Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 1 Aug 2018 12:16:36 -0700 Subject: [PATCH] Handle emitnative.c which is #included into other .c files. --- py/py.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/py.mk b/py/py.mk index 76f259b065..12bc571f35 100644 --- a/py/py.mk +++ b/py/py.mk @@ -278,9 +278,10 @@ endif # Sources that may contain qstrings SRC_QSTR_IGNORE = py/nlr% +SRC_QSTR_EMITNATIVE = py/emitn% SRC_QSTR = $(SRC_MOD) $(filter-out $(SRC_QSTR_IGNORE),$(PY_CORE_O_BASENAME:.o=.c)) $(PY_EXTMOD_O_BASENAME:.o=.c) # Sources that only hold QSTRs after pre-processing. -SRC_QSTR_PP = +SRC_QSTR_PP = $(addprefix $(TOP)/, $(filter $(SRC_QSTR_EMITNATIVE),$(PY_CORE_O_BASENAME:.o=.c))) # Anything that depends on FORCE will be considered out-of-date FORCE: