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:
parent
eb09d737ef
commit
84be263321
7
Makefile
7
Makefile
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue
Block a user