ac4f7deb2f
git-subtree-dir: compiler/rustc_codegen_cranelift git-subtree-mainline:cf798c1ec6
git-subtree-split:793d26047f
23 lines
343 B
Bash
Executable File
23 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z $CHANNEL ]; then
|
|
export CHANNEL='release'
|
|
fi
|
|
|
|
pushd $(dirname "$0") >/dev/null
|
|
source scripts/config.sh
|
|
|
|
# read nightly compiler from rust-toolchain file
|
|
TOOLCHAIN=$(cat rust-toolchain)
|
|
|
|
popd >/dev/null
|
|
|
|
cmd=$1
|
|
shift
|
|
|
|
if [[ "$cmd" = "jit" ]]; then
|
|
cargo +${TOOLCHAIN} rustc $@ -- --jit
|
|
else
|
|
cargo +${TOOLCHAIN} $cmd $@
|
|
fi
|