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:
chao an 2023-08-23 19:05:16 +08:00 committed by Xiang Xiao
parent 73f27b7cae
commit 77e6c39cbd

View File

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