Display warning when overriding default rustc version in cargo.sh

This commit is contained in:
bjorn3 2020-01-15 18:40:24 +01:00
parent a288a5ea06
commit 99407a4057

View File

@ -12,6 +12,11 @@ TOOLCHAIN=$(cat rust-toolchain)
popd >/dev/null
if [[ $(rustc -V) != $(rustc +${TOOLCHAIN} -V) ]]; then
echo "rustc_codegen_cranelift is build for $(rustc +${TOOLCHAIN} -V) but the default rustc version is $(rustc -V)."
echo "Using $(rustc +${TOOLCHAIN} -V)."
fi
cmd=$1
shift