Files
rust/library/compiler-builtins/libm/ci/install.sh

21 lines
363 B
Bash
Raw Normal View History

2018-07-12 00:53:44 -05:00
set -euxo pipefail
main() {
2018-07-13 22:10:08 -05:00
if [ $TARGET = cargo-fmt ]; then
rustup component add rustfmt-preview
return
fi
2018-07-12 00:53:44 -05:00
if ! hash cross >/dev/null 2>&1; then
cargo install cross
fi
rustup target add x86_64-unknown-linux-musl
if [ $TARGET != x86_64-unknown-linux-gnu ]; then
rustup target add $TARGET
fi
}
main