Prevent usage of sccache

It doesn't detect cg_clif as a rust compiler

Fixes #1091
This commit is contained in:
bjorn3 2020-09-30 09:15:02 +02:00
parent 0c065f9560
commit 3b60cc4eb1
1 changed files with 7 additions and 0 deletions

View File

@ -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 '\