mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
arch/arm: relax compiler check for workaround with "GCC 12.2"
1. relax compiler check for workaround with "GCC 12.2" 2. export GCCVER to environment Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
d7de93f906
commit
b8780fe906
@@ -232,9 +232,11 @@ else
|
|||||||
# Wrong warning array subscript [0] is outside array bounds:
|
# Wrong warning array subscript [0] is outside array bounds:
|
||||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
|
||||||
|
|
||||||
GCCVER = $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
ifeq ($(GCCVER),)
|
||||||
|
export GCCVER := $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/')
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(GCCVER),12.2.1)
|
ifeq ($(GCCVER),12.2)
|
||||||
ARCHOPTIMIZATION += --param=min-pagesize=0
|
ARCHOPTIMIZATION += --param=min-pagesize=0
|
||||||
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
|
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
|
||||||
LDFLAGS += --no-warn-rwx-segments
|
LDFLAGS += --no-warn-rwx-segments
|
||||||
|
|||||||
@@ -232,7 +232,9 @@ ifeq ($(CONFIG_ESP32_WIFI),y)
|
|||||||
CHIP_CSRCS += esp32_wlan.c esp32_wifi_utils.c esp32_wifi_adapter.c
|
CHIP_CSRCS += esp32_wlan.c esp32_wifi_utils.c esp32_wifi_adapter.c
|
||||||
EXTRA_LIBS += -lcore -lnet80211 -lpp -lsmartconfig -lespnow -lwpa_supplicant
|
EXTRA_LIBS += -lcore -lnet80211 -lpp -lsmartconfig -lespnow -lwpa_supplicant
|
||||||
|
|
||||||
GCCVER = $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/')
|
ifeq ($(GCCVER),)
|
||||||
|
export GCCVER := $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/')
|
||||||
|
endif
|
||||||
ifeq ($(GCCVER),12.2)
|
ifeq ($(GCCVER),12.2)
|
||||||
chip/esp32_wifi_adapter.c_CFLAGS += -Wno-maybe-uninitialized
|
chip/esp32_wifi_adapter.c_CFLAGS += -Wno-maybe-uninitialized
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -84,7 +84,10 @@ libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-shadow
|
|||||||
# 2676 | const basic_string __temp (__first, __last, __alloc());
|
# 2676 | const basic_string __temp (__first, __last, __alloc());
|
||||||
# | ^~~~~~
|
# | ^~~~~~
|
||||||
|
|
||||||
GCCVER = $(shell $(CXX) --version | grep g++ | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/')
|
ifeq ($(GCCVER),)
|
||||||
|
export GCCVER = $(shell $(CXX) --version | grep g++ | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/')
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(GCCVER),12.2)
|
ifeq ($(GCCVER),12.2)
|
||||||
libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-maybe-uninitialized
|
libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-maybe-uninitialized
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user