summaryrefslogtreecommitdiffstats
path: root/compilerplugins/Makefile-clang.mk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-30 09:27:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-30 09:27:58 +0200
commit944ed68645fbf9731c699dda9361719759af4ac4 (patch)
treedfd346ee192ce1b22d3e62be6c26e510d452e35f /compilerplugins/Makefile-clang.mk
parentWho needs that $(CLANGDIR)/tools/clang/include anyway? (diff)
downloadcore-944ed68645fbf9731c699dda9361719759af4ac4.tar.gz
core-944ed68645fbf9731c699dda9361719759af4ac4.zip
Explain usage of -isystem instead of -I
Change-Id: Ib7153db5c2c1542ff7e9a0daa6d7124225c7701c
Diffstat (limited to 'compilerplugins/Makefile-clang.mk')
-rw-r--r--compilerplugins/Makefile-clang.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk
index 59398688da21..dc9255725b9e 100644
--- a/compilerplugins/Makefile-clang.mk
+++ b/compilerplugins/Makefile-clang.mk
@@ -24,7 +24,8 @@ CLANGCXXFLAGS=-O2 -Wall -Wextra -Wundef -g
# Clang headers require these.
CLANGDEFS=-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti
-# All include locations needed.
+# All include locations needed (using -isystem silences various warnings when
+# including those files):
CLANGINCLUDES=$(if $(filter /usr,$(CLANGDIR)),,-isystem $(CLANGDIR)/include)
# Clang/LLVM libraries are intentionally not linked in, they are usually built as static libraries, which means the resulting