Display warning when overriding default rustc version in cargo.sh
This commit is contained in:
parent
a288a5ea06
commit
99407a4057
1 changed files with 5 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue