libs/libx: relax compiler check for workaround with "GCC 12.2"

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2023-03-20 16:25:17 +02:00
committed by Gustavo Henrique Nihei
parent 33a4a61cfb
commit a261439b8b
+2 -2
View File
@@ -84,8 +84,8 @@ libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-shadow
# 2676 | const basic_string __temp (__first, __last, __alloc());
# | ^~~~~~
GCCVER = $(shell $(CXX) --version | grep g++ | sed -r 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
ifeq ($(GCCVER),12.2.1)
GCCVER = $(shell $(CXX) --version | grep g++ | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/')
ifeq ($(GCCVER),12.2)
libcxx/src/filesystem/operations.cpp_CXXFLAGS += -Wno-maybe-uninitialized
endif