From 250f6b9a1e75895608a40e39487ba54975563ff5 Mon Sep 17 00:00:00 2001 From: Stefano Cristiano Date: Wed, 25 Dec 2019 17:06:37 +0100 Subject: [PATCH] Build: Disable unknown GCC specific warnings when compiling host tools using clang --- Makefile.common | 4 ++++ 1 file changed, 4 insertions(+) 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