From 3b60cc4eb13d94c2cd7ee8aed20fc65aa6ede64d Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Wed, 30 Sep 2020 09:15:02 +0200 Subject: [PATCH] Prevent usage of sccache It doesn't detect cg_clif as a rust compiler Fixes #1091 --- scripts/config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/config.sh b/scripts/config.sh index acd048893e9..530b7f242a0 100644 --- a/scripts/config.sh +++ b/scripts/config.sh @@ -32,6 +32,13 @@ if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then fi fi +if echo "$RUSTC_WRAPPER" | grep sccache; then +echo +echo -e "\x1b[1;93m=== Warning: Unset RUSTC_WRAPPER to prevent interference with sccache ===\x1b[0m" +echo +export RUSTC_WRAPPER= +fi + export RUSTC=$(pwd)/"target/"$CHANNEL"/cg_clif" export RUSTFLAGS=$linker export RUSTDOCFLAGS=$linker' -Ztrim-diagnostic-paths=no -Cpanic=abort -Zpanic-abort-tests '\