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).
This commit is contained in:
Jan Čapek 2016-03-16 07:47:40 +00:00 committed by Damien George
parent 9a627e8881
commit 000eae121c
1 changed files with 4 additions and 1 deletions

View File

@ -7,8 +7,11 @@ HEADER_BUILD = $(BUILD)/genhdr
# file containing qstr defs for the core Python bit
PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
# All collected qstr defs
# If qstr autogeneration is not disabled we specify the output header
# for all collected qstrings.
ifneq ($(QSTR_AUTOGEN_DISABLE),1)
QSTR_DEFS_COLLECTED = $(HEADER_BUILD)/qstrdefs.collected.h
endif
# some code is performance bottleneck and compiled with other optimization options
CSUPEROPT = -O3