mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
libs/libxx: check GCC version before set special flags
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -84,7 +84,10 @@ libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-shadow
|
|||||||
# 2676 | const basic_string __temp (__first, __last, __alloc());
|
# 2676 | const basic_string __temp (__first, __last, __alloc());
|
||||||
# | ^~~~~~
|
# | ^~~~~~
|
||||||
|
|
||||||
libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-maybe-uninitialized
|
GCCVER = $(shell $(CXX) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
|
||||||
|
ifeq ($(GCCVER),12.2.1)
|
||||||
|
libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-maybe-uninitialized
|
||||||
|
endif
|
||||||
|
|
||||||
CPPSRCS += $(notdir $(wildcard libcxx/src/*.cpp))
|
CPPSRCS += $(notdir $(wildcard libcxx/src/*.cpp))
|
||||||
CPPSRCS += $(notdir $(wildcard libcxx/src/experimental/*.cpp))
|
CPPSRCS += $(notdir $(wildcard libcxx/src/experimental/*.cpp))
|
||||||
|
|||||||
Reference in New Issue
Block a user