diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-07-09 11:14:24 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-07-09 11:14:24 +0000 |
commit | b538ac68307c301f233bda5af3f0fc92e86ac9cf (patch) | |
tree | 2848698c22846f0436c89a975c02f86d697d303b | |
parent | 3b693c42b5c69713a1803a044326d621435f36b8 (diff) | |
download | bcm5719-llvm-b538ac68307c301f233bda5af3f0fc92e86ac9cf.tar.gz bcm5719-llvm-b538ac68307c301f233bda5af3f0fc92e86ac9cf.zip |
c-index-test/Makefile: Use -isystem instead of -I on $(LIBXML2_INC) with -Wdocumentation.
-Wdocumentation won't seek -isystem. LIBXML2's headers in a certain distro might be incompatible to -Wdocumentation.
FIXME: Could autoconf detect clang or availability of -isystem?
llvm-svn: 185927
-rw-r--r-- | clang/tools/c-index-test/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/Makefile b/clang/tools/c-index-test/Makefile index 4df90e62abe..5aaabefdf6f 100644 --- a/clang/tools/c-index-test/Makefile +++ b/clang/tools/c-index-test/Makefile @@ -37,4 +37,12 @@ USEDLIBS = clang.a \ include $(CLANG_LEVEL)/Makefile LIBS += $(LIBXML2_LIBS) + +# Headers in $(LIBXML2_INC) should not be checked with clang's -Wdocumentation. +# Use -isystem instead of -I then. +# FIXME: Could autoconf detect clang or availability of -isystem? +ifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),) +CPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC)) +else CPPFLAGS += $(LIBXML2_INC) +endif |