Kaydet (Commit) fa503091 authored tarafından Michael Stahl's avatar Michael Stahl

gbuild: avoid -Wunused-macros with clang and icecream+ccache

On Fedora, the recommended way to use icecream with ccache is to set
CCACHE_PREFIX=icecc - but then $CC does not indicate that icecream is
used.

Change-Id: Ie757e6c00b07df7664c368c0e9f9c9bc599f3651
Reviewed-on: https://gerrit.libreoffice.org/56815
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Stahl <Michael.Stahl@cib.de>
üst 36bade04
...@@ -55,7 +55,7 @@ gb_CFLAGS_COMMON := \ ...@@ -55,7 +55,7 @@ gb_CFLAGS_COMMON := \
-Wstrict-prototypes \ -Wstrict-prototypes \
-Wundef \ -Wundef \
-Wunreachable-code \ -Wunreachable-code \
$(if $(and $(COM_IS_CLANG),$(findstring icecc,$(CC))),,-Wunused-macros) \ $(if $(and $(COM_IS_CLANG),$(or $(findstring icecc,$(CC)),$(findstring icecc,$(CCACHE_PREFIX)))),,-Wunused-macros) \
-finput-charset=UTF-8 \ -finput-charset=UTF-8 \
-fmessage-length=0 \ -fmessage-length=0 \
-fno-common \ -fno-common \
...@@ -69,7 +69,7 @@ gb_CXXFLAGS_COMMON := \ ...@@ -69,7 +69,7 @@ gb_CXXFLAGS_COMMON := \
-Wextra \ -Wextra \
-Wundef \ -Wundef \
-Wunreachable-code \ -Wunreachable-code \
$(if $(and $(COM_IS_CLANG),$(findstring icecc,$(CXX))),,-Wunused-macros) \ $(if $(and $(COM_IS_CLANG),$(or $(findstring icecc,$(CC)),$(findstring icecc,$(CCACHE_PREFIX)))),,-Wunused-macros) \
-finput-charset=UTF-8 \ -finput-charset=UTF-8 \
-fmessage-length=0 \ -fmessage-length=0 \
-fno-common \ -fno-common \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment