Skip to content

Commit

Permalink
system/libuv: strict GCC version check from GCC-12.2 to GCC-12
Browse files Browse the repository at this point in the history
Toolchain related detection errors are still not resolved on GCC-12.3

Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Aug 23, 2023
1 parent 73f27b7 commit 77e6c39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/libuv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 77e6c39

Please sign in to comment.