Explain usage of -isystem instead of -I

Change-Id: Ib7153db5c2c1542ff7e9a0daa6d7124225c7701c
This commit is contained in:
Stephan Bergmann
2016-06-30 09:27:58 +02:00
parent 4d54e24026
commit 944ed68645

View File

@@ -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