diff options
author | Benedikt Tutzer <benedikt.tutzer@gmail.com> | 2020-09-25 12:57:46 +0200 |
---|---|---|
committer | Benedikt Tutzer <benedikt.tutzer@gmail.com> | 2020-09-25 12:57:46 +0200 |
commit | 4892ec853bc9d97c4339c0f68b892414ca3702b4 (patch) | |
tree | 0525ef4959ee1390b112068f4ca1f35709631e2c /Makefile | |
parent | cd8b2ed4e6f9447c94d801de7db7ae6ce0976d57 (diff) | |
download | yosys-4892ec853bc9d97c4339c0f68b892414ca3702b4.tar.gz yosys-4892ec853bc9d97c4339c0f68b892414ca3702b4.tar.bz2 yosys-4892ec853bc9d97c4339c0f68b892414ca3702b4.zip |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |