mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-05 00:13:19 +00:00
system/libuv: check GCC version before set special flags
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
f0ddb92be0
commit
8ac809e680
1 changed files with 5 additions and 1 deletions
|
|
@ -49,10 +49,14 @@ CFLAGS += -I$(LIBUV_UNPACK)/src
|
|||
CFLAGS += -I$(LIBUV_UNPACK)/src/unix
|
||||
CFLAGS += -I$(LIBUV_UNPACK)/test
|
||||
CFLAGS += -Wno-shadow
|
||||
CFLAGS += -Wno-dangling-pointer
|
||||
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)
|
||||
CFLAGS += -Wno-dangling-pointer
|
||||
endif
|
||||
|
||||
VPATH += $(LIBUV_UNPACK)/src
|
||||
VPATH += $(LIBUV_UNPACK)/src/unix
|
||||
VPATH += $(LIBUV_UNPACK)/test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue