mk/precompiled-headers.mk: Fix clang test

"clang++" includes the string "g++" so this test didn't work
properly. However the separate handling of clang might not be needed
anymore...
This commit is contained in:
Eelco Dolstra 2020-10-06 13:26:00 +02:00
parent 636455c471
commit b4db315a56

View file

@ -21,18 +21,18 @@ clean-files += $(GCH) $(PCH)
ifeq ($(PRECOMPILE_HEADERS), 1) ifeq ($(PRECOMPILE_HEADERS), 1)
ifeq ($(findstring g++,$(CXX)), g++) ifeq ($(findstring clang++,$(CXX)), clang++)
GLOBAL_CXXFLAGS_PCH += -include $(buildprefix)precompiled-headers.h -Winvalid-pch
GLOBAL_ORDER_AFTER += $(GCH)
else ifeq ($(findstring clang++,$(CXX)), clang++)
GLOBAL_CXXFLAGS_PCH += -include-pch $(PCH) -Winvalid-pch GLOBAL_CXXFLAGS_PCH += -include-pch $(PCH) -Winvalid-pch
GLOBAL_ORDER_AFTER += $(PCH) GLOBAL_ORDER_AFTER += $(PCH)
else ifeq ($(findstring g++,$(CXX)), g++)
GLOBAL_CXXFLAGS_PCH += -include $(buildprefix)precompiled-headers.h -Winvalid-pch
GLOBAL_ORDER_AFTER += $(GCH)
else else
$(error Don't know how to precompile headers on $(CXX)) $(error Don't know how to precompile headers on $(CXX))