rc Makefile: Fix the predicate to detect g++
Some distributions replace the expected "GCC" tag with their own name and version, causing the Makefile not to include a compiler flag.
This commit is contained in:
parent
6766297623
commit
789caf89a3
|
@ -95,7 +95,7 @@ CXXFLAGS += -pedantic -std=c++17 -g -Wall -Wextra -Wno-unused-parameter -Wno-sig
|
|||
compiler := $(shell $(CXX) --version)
|
||||
ifneq (,$(findstring clang,$(compiler)))
|
||||
CXXFLAGS += -frelaxed-template-template-args
|
||||
else ifneq (,$(findstring GCC,$(compiler)))
|
||||
else ifneq (,$(findstring g++,$(compiler)))
|
||||
CXXFLAGS += -Wno-init-list-lifetime
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user