aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to '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