Skip to content

Commit 000eae1

Browse files
janbraiinsdpgeorge
authored andcommitted
py/py.mk: Add makefile variable for qstr autogeneration control.
- any architecture may explicitely build with qstring make QSTR_AUTOGEN_DISABLE=1 autogeneration disabled and provide its own list of qstrings by the standard mechanisms (qstrdefsport.h).
1 parent 9a627e8 commit 000eae1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

py/py.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ HEADER_BUILD = $(BUILD)/genhdr
77
# file containing qstr defs for the core Python bit
88
PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
99

10-
# All collected qstr defs
10+
# If qstr autogeneration is not disabled we specify the output header
11+
# for all collected qstrings.
12+
ifneq ($(QSTR_AUTOGEN_DISABLE),1)
1113
QSTR_DEFS_COLLECTED = $(HEADER_BUILD)/qstrdefs.collected.h
14+
endif
1215

1316
# some code is performance bottleneck and compiled with other optimization options
1417
CSUPEROPT = -O3

0 commit comments

Comments
 (0)