2019-07-30 06:37:47 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -z $CHANNEL ]; then
|
2020-07-24 07:21:31 -05:00
|
|
|
export CHANNEL='release'
|
2019-07-30 06:37:47 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
pushd $(dirname "$0") >/dev/null
|
2020-09-16 09:46:02 -05:00
|
|
|
source scripts/config.sh
|
2020-01-15 11:05:18 -06:00
|
|
|
|
|
|
|
# read nightly compiler from rust-toolchain file
|
|
|
|
TOOLCHAIN=$(cat rust-toolchain)
|
|
|
|
|
2019-07-30 06:37:47 -05:00
|
|
|
popd >/dev/null
|
|
|
|
|
|
|
|
cmd=$1
|
|
|
|
shift
|
|
|
|
|
2020-09-29 11:41:59 -05:00
|
|
|
if [[ "$cmd" = "jit" ]]; then
|
|
|
|
cargo +${TOOLCHAIN} rustc $@ -- --jit
|
|
|
|
else
|
2020-04-20 10:13:43 -05:00
|
|
|
cargo +${TOOLCHAIN} $cmd $@
|
2020-09-29 11:41:59 -05:00
|
|
|
fi
|