Skip to content

Commit 3b60cc4

Browse files
committed
Prevent usage of sccache
It doesn't detect cg_clif as a rust compiler Fixes #1091
1 parent 0c065f9 commit 3b60cc4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/config.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
3232
fi
3333
fi
3434

35+
if echo "$RUSTC_WRAPPER" | grep sccache; then
36+
echo
37+
echo -e "\x1b[1;93m=== Warning: Unset RUSTC_WRAPPER to prevent interference with sccache ===\x1b[0m"
38+
echo
39+
export RUSTC_WRAPPER=
40+
fi
41+
3542
export RUSTC=$(pwd)/"target/"$CHANNEL"/cg_clif"
3643
export RUSTFLAGS=$linker
3744
export RUSTDOCFLAGS=$linker' -Ztrim-diagnostic-paths=no -Cpanic=abort -Zpanic-abort-tests '\

0 commit comments

Comments
 (0)