Display warning when overriding default rustc version in cargo.sh
This commit is contained in:
parent
a288a5ea06
commit
99407a4057
5
cargo.sh
5
cargo.sh
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user