system/libuv: strict GCC version check from GCC-12.2 to GCC-12
Toolchain related detection errors are still not resolved on GCC-12.3 Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
73f27b7cae
commit
77e6c39cbd
@ -52,8 +52,11 @@ CFLAGS += -Wno-shadow
|
||||
CFLAGS += -DDEF_THREADPOOL_SIZE=CONFIG_LIBUV_THREADPOOL_SIZE
|
||||
CFLAGS += -DDEF_THREADPOOL_STACKSIZE=CONFIG_LIBUV_THREAD_STACKSIZE
|
||||
|
||||
GCCVER = $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
||||
ifeq ($(GCCVER),12.2.1)
|
||||
ifeq ($(GCCVER),)
|
||||
GCCVER = $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/' | cut -d'.' -f1)
|
||||
endif
|
||||
|
||||
ifeq ($(GCCVER),12)
|
||||
CFLAGS += -Wno-dangling-pointer
|
||||
endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user