mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 11:33:58 +00:00
try to use sccache if available
This commit is contained in:
parent
a62bbeb425
commit
2eee7fef59
6
debian/rules
vendored
6
debian/rules
vendored
@ -420,6 +420,12 @@ ifeq ($(shell test -e /tmp/cmake/bin/cmake && echo -n yes),yes)
|
||||
export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/tmp/cmake/bin/
|
||||
endif
|
||||
|
||||
# if sccache is installed in the chroot, use it
|
||||
ifeq ($(shell test -e ~/sccache && echo -n yes),yes)
|
||||
export SCCACHE_GCS_KEY_PATH=secret-gcp-storage.json
|
||||
STAGE_1_CMAKE_EXTRA += -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
|
||||
endif
|
||||
|
||||
GENERATOR=Ninja
|
||||
|
||||
# enables cmake build targets like stage2-[target_name]
|
||||
|
Loading…
Reference in New Issue
Block a user