summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Cristiano <sc@recognitionrobotics.com>2019-12-25 17:06:37 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-27 02:19:55 +0100
commit250f6b9a1e75895608a40e39487ba54975563ff5 (patch)
tree08da7448b2f8fc504ba6f8c40736b19b6c1e5d0f
parent18e3e4f236e1ea6e0343058df00192b5ae1e5e13 (diff)
downloadserenity-250f6b9a1e75895608a40e39487ba54975563ff5.zip
Build: Disable unknown GCC specific warnings when compiling host tools using clang
-rw-r--r--Makefile.common4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index edd1c130db..c73de3c063 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -23,6 +23,10 @@ INCLUDE_FLAGS += \
VERBOSE = 0
ifneq ($(HOST_CXX),)
+ ifeq '' '$(findstring clang++,$(CXX))'
+ C_WARNING_FLAGS += -Wno-unknown-warning-option
+ CXX_WARNING_FLAGS += -Wno-unknown-warning-option
+ endif
CXX = $(PRE_CXX) g++
AS = as
LINK = ld