Make sure ULAB_HAS_USER_MODULE is defined (as zero)
This fixes a problem preprocessing genhdr/moduledefs.h, which refers to it. This file doesn't include the place that ulab normally defines ULAB_HAS_USER_MODULE by default, so just force it.
This commit is contained in:
parent
a040b6962f
commit
ff4d4f791b
2
py/py.mk
2
py/py.mk
@ -55,7 +55,7 @@ endif
|
||||
ifeq ($(CIRCUITPY_ULAB),1)
|
||||
ULAB_SRCS := $(shell find $(TOP)/extmod/ulab/code -type f -name "*.c")
|
||||
SRC_MOD += $(patsubst $(TOP)/%,%,$(ULAB_SRCS))
|
||||
CFLAGS_MOD += -DCIRCUITPY_ULAB=1 -DMODULE_ULAB_ENABLED=1 -iquote $(TOP)/extmod/ulab/code
|
||||
CFLAGS_MOD += -DCIRCUITPY_ULAB=1 -DMODULE_ULAB_ENABLED=1 -DULAB_HAS_USER_MODULE=0 -iquote $(TOP)/extmod/ulab/code
|
||||
$(BUILD)/extmod/ulab/code/%.o: CFLAGS += -Wno-missing-declarations -Wno-missing-prototypes -Wno-unused-parameter -Wno-float-equal -Wno-sign-compare -Wno-cast-align -Wno-shadow -DCIRCUITPY
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user