only do it for bullseye

This commit is contained in:
Sylvestre Ledru 2022-10-16 16:15:50 +02:00
parent 0e6b7142cf
commit 745291f0b9

2
debian/rules vendored
View File

@ -422,6 +422,7 @@ endif
# if sccache is installed in the chroot, use it
ifeq ($(shell test -e /tmp/sccache && echo -n yes),yes)
ifneq (,$(filter $(DISTRO),bullseye))
export SCCACHE_GCS_KEY_PATH=secret-gcp-storage.json
export SCCACHE_GCS_BUCKET=apt-llvm-org-sccache
export SCCACHE_GCS_RW_MODE=READ_WRITE
@ -429,6 +430,7 @@ ifeq ($(shell test -e /tmp/sccache && echo -n yes),yes)
export SCCACHE_ERROR_LOG=/tmp/sccache.log
STAGE_1_CMAKE_EXTRA += -DCMAKE_C_COMPILER_LAUNCHER=/tmp/sccache -DCMAKE_CXX_COMPILER_LAUNCHER=/tmp/sccache
endif
endif
GENERATOR=Ninja