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:
parent
d7de93f906
commit
b8780fe906
@ -232,9 +232,11 @@ else
|
||||
# Wrong warning array subscript [0] is outside array bounds:
|
||||
# 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
|
||||
ifeq ($(CONFIG_ARCH_RAMFUNCS),y)
|
||||
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
|
||||
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)
|
||||
chip/esp32_wifi_adapter.c_CFLAGS += -Wno-maybe-uninitialized
|
||||
endif
|
||||
|
@ -84,7 +84,10 @@ libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-shadow
|
||||
# 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)
|
||||
libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-maybe-uninitialized
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user