Merge pull request #2605 from openmv/cflags_fix

misc: Filter gnu11 standard from CFLAGS.
This commit is contained in:
Ibrahim Abdelkader 2025-02-09 18:47:41 +02:00 committed by GitHub
commit 358c69c507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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 \

View File

@ -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)