mirror of https://github.com/YosysHQ/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.
This commit is contained in:
parent
cd8b2ed4e6
commit
4892ec853b
2
Makefile
2
Makefile
|
@ -686,7 +686,7 @@ endif
|
||||||
|
|
||||||
%.pyh: %.h
|
%.pyh: %.h
|
||||||
$(Q) mkdir -p $(dir $@)
|
$(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)
|
ifeq ($(ENABLE_PYOSYS),1)
|
||||||
$(PY_WRAPPER_FILE).cc: misc/$(PY_GEN_SCRIPT).py $(PY_WRAP_INCLUDES)
|
$(PY_WRAPPER_FILE).cc: misc/$(PY_GEN_SCRIPT).py $(PY_WRAP_INCLUDES)
|
||||||
|
|
Loading…
Reference in New Issue