[Libreoffice-commits] core.git: compilerplugins/Makefile-clang.mk
Stephan Bergmann
sbergman at redhat.com
Thu Jun 30 07:28:31 UTC 2016
compilerplugins/Makefile-clang.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 944ed68645fbf9731c699dda9361719759af4ac4
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Jun 30 09:27:58 2016 +0200
Explain usage of -isystem instead of -I
Change-Id: Ib7153db5c2c1542ff7e9a0daa6d7124225c7701c
diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk
index 5939868..dc92557 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
More information about the Libreoffice-commits
mailing list