]> git.lizzy.rs Git - rust.git/blobdiff - cargo.sh
Merge pull request #1079 from CohenArthur/fmt-master
[rust.git] / cargo.sh
index 5af2381215198ea6e6065deb75eb2ff3667f937b..d5be7773d342b5c0a396688dea6a00c1615d59c1 100755 (executable)
--- a/cargo.sh
+++ b/cargo.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 if [ -z $CHANNEL ]; then
-export CHANNEL='debug'
+export CHANNEL='release'
 fi
 
 pushd $(dirname "$0") >/dev/null
@@ -12,7 +12,12 @@ 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
 
-cargo +${TOOLCHAIN} $cmd --target $TARGET_TRIPLE $@
+cargo +${TOOLCHAIN} $cmd $@