disable sccache when building with coverity

This commit is contained in:
Sylvestre Ledru 2024-01-12 10:36:24 +01:00
parent e976326360
commit fcf132b2c9

3
debian/rules vendored
View File

@ -542,6 +542,7 @@ SCCACHE_CMAKE =
# if sccache is installed in the chroot, use it # if sccache is installed in the chroot, use it
ifeq ($(shell test -e /opt/sccache/sccache && echo -n yes),yes) ifeq ($(shell test -e /opt/sccache/sccache && echo -n yes),yes)
ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64)) ifneq (,$(filter $(DEB_HOST_ARCH),i386 amd64))
ifeq ($(COVERITY_ENABLE),0) # Only enable SCCache if Coverity is not enabled
STAGE_1_CMAKE_EXTRA += $(SCCACHE_CMAKE) STAGE_1_CMAKE_EXTRA += $(SCCACHE_CMAKE)
SCCACHE_ENABLE=yes SCCACHE_ENABLE=yes
SCCACHE_PATH=/opt/sccache/ SCCACHE_PATH=/opt/sccache/
@ -550,7 +551,7 @@ ifeq ($(shell test -e /opt/sccache/sccache && echo -n yes),yes)
export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/opt/sccache export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/opt/sccache
endif endif
endif endif
endif
# enables cmake build targets like stage2-[target_name] # enables cmake build targets like stage2-[target_name]
ENABLED_STAGE2_CMAKE_BUILD_TARGETS = check-all;check-llvm;check-clang;check-clang-tools;check-lld;check-libcxx;check-libcxxabi;check-mlir;check-sanitizer;llvm-config;test-suite ENABLED_STAGE2_CMAKE_BUILD_TARGETS = check-all;check-llvm;check-clang;check-clang-tools;check-lld;check-libcxx;check-libcxxabi;check-mlir;check-sanitizer;llvm-config;test-suite