configure.ac | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit afb41ff0c5bfc5402c1a5522a55998d6c023b248
Author: LuboÅ¡ LuÅák <[email protected]>
Date: Tue Jul 16 09:53:29 2013 +0200
warn in configure about using ccache+clang without CCACHE_CPP2 set
- causes warnings about unused -I options, because they are preprocessing
options
and Clang complains that they are unused in pure compilation
- Clang supresses some warnings from expansions of macros in system
headers, but those
would be already expanded and thus warned about
- Clang prints relevant source lines with errors/warnings in them and would
show
them preprocessed (this should actually apply to GCC4.8+ too)
Change-Id: I02c86c43a657d078e347e4ecd5c1e2ff07db2886
diff --git a/configure.ac b/configure.ac
index cc439e0..365391d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2896,6 +2896,13 @@ if test "$GCC" = "yes"; then
fi
AC_SUBST(COM_GCC_IS_CLANG)
+if test "$CCACHE" != "" -a "$COM_GCC_IS_CLANG" = TRUE; then
+ if test -z "$CCACHE_CPP2"; then
+ AC_MSG_WARN([Using ccache with Clang without CCACHE_CPP2 set
causes spurious warnings.])
+ add_warning "Using ccache with Clang without CCACHE_CPP2 set
causes spurious warnings."
+ fi
+fi
+
# ===================================================================
# check various GCC options that Clang does not support now but maybe
# will somewhen in the future, check them even for GCC, so that the
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits