aboutsummaryrefslogtreecommitdiff
path: root/mk/precompiled-headers.mk
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-10-06 13:26:00 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-10-06 13:26:00 +0200
commitb4db315a56860b10a7d19339f2310bc1149219cf (patch)
tree6409b4a64d4a8650e814edaa1728715fa30a3320 /mk/precompiled-headers.mk
parent636455c471bfde89dbdf33e10308962b79d50f07 (diff)
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...
Diffstat (limited to 'mk/precompiled-headers.mk')
-rw-r--r--mk/precompiled-headers.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/precompiled-headers.mk b/mk/precompiled-headers.mk
index 1fdb4b3a4..bfee35a2c 100644
--- a/mk/precompiled-headers.mk
+++ b/mk/precompiled-headers.mk
@@ -21,17 +21,17 @@ clean-files += $(GCH) $(PCH)
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_CXXFLAGS_PCH += -include-pch $(PCH) -Winvalid-pch
- GLOBAL_ORDER_AFTER += $(GCH)
+ GLOBAL_ORDER_AFTER += $(PCH)
- else ifeq ($(findstring clang++,$(CXX)), clang++)
+ else ifeq ($(findstring g++,$(CXX)), g++)
- GLOBAL_CXXFLAGS_PCH += -include-pch $(PCH) -Winvalid-pch
+ GLOBAL_CXXFLAGS_PCH += -include $(buildprefix)precompiled-headers.h -Winvalid-pch
- GLOBAL_ORDER_AFTER += $(PCH)
+ GLOBAL_ORDER_AFTER += $(GCH)
else