mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-14 15:23:00 +00:00
sccache: as we know which archs are supported, just set it
This commit is contained in:
parent
0b40adb0b4
commit
742af03506
4
debian/rules
vendored
4
debian/rules
vendored
@ -461,14 +461,14 @@ SCCACHE_ENABLE=no
|
|||||||
SCCACHE_CMAKE =
|
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))
|
||||||
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/
|
||||||
SCCACHE_CMD=$(SCCACHE_PATH)/sccache
|
SCCACHE_CMD=$(SCCACHE_PATH)/sccache
|
||||||
SCCACHE_CMAKE = -DCMAKE_C_COMPILER_LAUNCHER=$(SCCACHE_CMD) -DCMAKE_CXX_COMPILER_LAUNCHER=$(SCCACHE_CMD)
|
SCCACHE_CMAKE = -DCMAKE_C_COMPILER_LAUNCHER=$(SCCACHE_CMD) -DCMAKE_CXX_COMPILER_LAUNCHER=$(SCCACHE_CMD)
|
||||||
export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/opt/sccache
|
export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:/opt/sccache
|
||||||
else
|
endif
|
||||||
$(info ************ Cannot find /opt/sccache/sccache ************)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# enables cmake build targets like stage2-[target_name]
|
# enables cmake build targets like stage2-[target_name]
|
||||||
|
Loading…
Reference in New Issue
Block a user