From: Benedikt Tutzer Date: Fri, 25 Sep 2020 10:57:46 +0000 (+0200) Subject: Use CXXFLAGS to enable pyosys specific code before generating wrappers X-Git-Tag: working-ls180~264^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4892ec853bc9d97c4339c0f68b892414ca3702b4;p=yosys.git Use CXXFLAGS to enable pyosys specific code before generating wrappers The .pyh files were generated without the CXXFLAGS. This meant that code marked by the WITH_PYTHON flag was excluded. This is fixed by adding the flag in the rule for .pyh files. --- diff --git a/Makefile b/Makefile index a3ff10625..1b25c9a71 100644 --- a/Makefile +++ b/Makefile @@ -686,7 +686,7 @@ endif %.pyh: %.h $(Q) mkdir -p $(dir $@) - $(P) cat $< | grep -E -v "#[ ]*(include|error)" | $(LD) -x c++ -o $@ -E -P - + $(P) cat $< | grep -E -v "#[ ]*(include|error)" | $(LD) $(CXXFLAGS) -x c++ -o $@ -E -P - ifeq ($(ENABLE_PYOSYS),1) $(PY_WRAPPER_FILE).cc: misc/$(PY_GEN_SCRIPT).py $(PY_WRAP_INCLUDES)