mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2605 from openmv/cflags_fix
misc: Filter gnu11 standard from CFLAGS.
This commit is contained in:
commit
358c69c507
@ -18,7 +18,7 @@ override VELA_ARGS := ""
|
||||
endif
|
||||
|
||||
# Extra module flags.
|
||||
CXXFLAGS += $(filter-out -std=gnu99,$(CFLAGS)) \
|
||||
CXXFLAGS += $(filter-out -std=gnu99 -std=gnu11,$(CFLAGS)) \
|
||||
-std=c++11 \
|
||||
-fno-rtti \
|
||||
-fno-exceptions \
|
||||
@ -29,7 +29,7 @@ CXXFLAGS += $(filter-out -std=gnu99,$(CFLAGS)) \
|
||||
-fmessage-length=0 \
|
||||
-fno-threadsafe-statics \
|
||||
-Wno-double-promotion \
|
||||
-Wno-float-conversion \
|
||||
-Wno-float-conversion
|
||||
|
||||
CXXFLAGS += -DTF_LITE_STATIC_MEMORY \
|
||||
-DTF_LITE_DISABLE_X86_NEON \
|
||||
|
||||
@ -47,7 +47,7 @@ CXXFLAGS_USERMOD += \
|
||||
-fpermissive \
|
||||
-fno-threadsafe-statics \
|
||||
-fmessage-length=0 \
|
||||
$(filter-out -std=gnu99,$(CFLAGS))
|
||||
$(filter-out -std=gnu99 -std=gnu11,$(CFLAGS))
|
||||
|
||||
# Add CubeAI module if enabled.
|
||||
ifeq ($(MICROPY_PY_CUBEAI), 1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user