about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-09-30 09:15:02 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2020-09-30 09:16:14 +0200
commit3b60cc4eb13d94c2cd7ee8aed20fc65aa6ede64d (patch)
tree2d1ca0ce532ea9a80bde78283203528b45e4b233
parent0c065f95609e28cd3f2ddddccb06bf01705699cb (diff)
downloadrust-3b60cc4eb13d94c2cd7ee8aed20fc65aa6ede64d.tar.gz
rust-3b60cc4eb13d94c2cd7ee8aed20fc65aa6ede64d.zip
Prevent usage of sccache
It doesn't detect cg_clif as a rust compiler

Fixes #1091
-rw-r--r--scripts/config.sh7
1 files changed, 7 insertions, 0 deletions
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 '\