Re-change how compiler detection is done

Turns out GCC does not appear in many gcc version, go back to
checking `g++` and assume `c++` means `g++`

Fixes #5119
This commit is contained in:
Maxime Coste 2024-03-23 21:09:27 +11:00
parent eb09d737ef
commit 84be263321

View File

@ -63,11 +63,10 @@ LIBS-os-Windows = -ldbghelp
CXXFLAGS-default = -std=c++2a -Wall -Wextra -pedantic -Wno-unused-parameter -Wno-sign-compare
compiler != $(CXX) --version | grep -E -o 'clang|GCC' | head -1
#CXXFLAGS-compiler-clang = -frelaxed-template-template-args -Wno-ambiguous-reversed-operator
#CXXFLAGS-compiler-GCC = -Wno-init-list-lifetime
compiler != $(CXX) --version | grep -E -o 'clang|g\+\+|c\+\+' | head -1
CXXFLAGS-compiler-clang = -fsized-deallocation
CXXFLAGS-compiler-GCC = -Wno-init-list-lifetime -Wno-stringop-overflow
CXXFLAGS-compiler-g++ = -Wno-init-list-lifetime -Wno-stringop-overflow
CXXFLAGS-compiler-c++ = $(CXXFLAGS-compiler-g++)
KAK_CPPFLAGS = \
$(CPPFLAGS-default) \