Search found 4 matches
- Mon Jan 24, 2022 7:45 pm
- Forum: Development of MicroPython
- Topic: Understanding the qstr generation process
- Replies: 6
- Views: 17378
Re: Understanding the qstr generation process
makeqstrdefs.py is called with arguments including the compiler and flags (i.e. QSTR_GEN_CFLAGS), which makeqstrdefs.py uses to do the preprocessing by running the compiler with those flags but my point is that the way Make works, whatever implicit rules exist for generating object files will run b...
- Sun Jan 23, 2022 7:34 pm
- Forum: Development of MicroPython
- Topic: Understanding the qstr generation process
- Replies: 6
- Views: 17378
Re: Understanding the qstr generation process
so the question is: how does building the qstrdefs work with a circular dependency like this? It's not circular during preprocessing which generates said header, because it's inclusion is guarded by #ifdef NO_QSTR see mkrules.mk (or equivalent genhdr.targets for msvc): # QSTR generation uses the sa...
- Sun Jan 23, 2022 7:13 pm
- Forum: Development of MicroPython
- Topic: Understanding the qstr generation process
- Replies: 6
- Views: 17378
- Sun Jan 23, 2022 2:43 am
- Forum: Development of MicroPython
- Topic: Understanding the qstr generation process
- Replies: 6
- Views: 17378
Understanding the qstr generation process
i'm trying to work out how exactly the build process works when generating the qstr headers, and i've run into an issue: py/py.mk says # Sources that may contain qstrings SRC_QSTR_IGNORE = py/nlr% SRC_QSTR += $(SRC_MOD) $(filter-out $(SRC_QSTR_IGNORE),$(PY_CORE_O_BASENAME:.o=.c)) $(PY_EXTMOD_O_BASEN...