Handle emitnative.c which is #included into other .c files.

This commit is contained in:
Scott Shawcroft 2018-08-01 12:16:36 -07:00
parent 8cf03d2d00
commit f6d1b63ecd
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -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: