You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
set -euxo pipefail
|
|
|
|
main() {
|
|
rustup component add rust-src
|
|
SYSROOT=$(rustc --print sysroot)
|
|
if [[ ! "$SYSROOT" =~ "$TARGET" ]]; then
|
|
rustup target add $TARGET
|
|
else
|
|
echo "Target $TARGET is already installed"
|
|
fi
|
|
}
|
|
|
|
main
|