diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-30 09:27:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-30 09:27:58 +0200 |
commit | 944ed68645fbf9731c699dda9361719759af4ac4 (patch) | |
tree | dfd346ee192ce1b22d3e62be6c26e510d452e35f /compilerplugins | |
parent | 4d54e240262ffb2d2de1d72986f025657e230c77 (diff) |
Explain usage of -isystem instead of -I
Change-Id: Ib7153db5c2c1542ff7e9a0daa6d7124225c7701c
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/Makefile-clang.mk | 3 |
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 |