This repository was archived by the owner on Sep 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -384,24 +384,6 @@ case $HOST_TRIPLE in
384
384
385
385
esac
386
386
387
- # Is this a triple we have cargo nightlies for?
388
- if [ -z " ${CFG_DISABLE_CARGO} " ]; then
389
- case $HOST_TRIPLE in
390
- x86_64-unknown-linux-gnu)
391
- CARGO_PLATFORM=linux
392
- ;;
393
-
394
- x86_64-apple-darwin)
395
- CARGO_PLATFORM=mac
396
- ;;
397
-
398
- * )
399
- warn " rustup.sh can't install cargo for $HOST_TRIPLE "
400
- CFG_DISABLE_CARGO=1
401
-
402
- esac
403
- fi
404
-
405
387
msg " host triple: ${HOST_TRIPLE} "
406
388
407
389
PACKAGE_NAME=rust-nightly
@@ -414,11 +396,11 @@ LOCAL_INSTALL_DIR="${TMP_DIR}/${PACKAGE_NAME_AND_TRIPLE}"
414
396
LOCAL_INSTALL_SCRIPT=" ${LOCAL_INSTALL_DIR} /install.sh"
415
397
416
398
CARGO_PACKAGE_NAME=cargo-nightly
417
- CARGO_PACKAGE_NAME_AND_TRIPLE=" ${CARGO_PACKAGE_NAME} -${CARGO_PLATFORM } "
399
+ CARGO_PACKAGE_NAME_AND_TRIPLE=" ${CARGO_PACKAGE_NAME} -${HOST_TRIPLE } "
418
400
CARGO_TARBALL_NAME=" ${CARGO_PACKAGE_NAME_AND_TRIPLE} .tar.gz"
419
401
CARGO_REMOTE_TARBALL=" http://static.rust-lang.org/cargo-dist/${CARGO_TARBALL_NAME} "
420
402
CARGO_LOCAL_TARBALL=" ${TMP_DIR} /${CARGO_TARBALL_NAME} "
421
- CARGO_LOCAL_INSTALL_DIR=" ${TMP_DIR} /${CARGO_PACKAGE_NAME } "
403
+ CARGO_LOCAL_INSTALL_DIR=" ${TMP_DIR} /${CARGO_PACKAGE_NAME_AND_TRIPLE } "
422
404
CARGO_LOCAL_INSTALL_SCRIPT=" ${CARGO_LOCAL_INSTALL_DIR} /install.sh"
423
405
424
406
rm -Rf " ${TMP_DIR} "
You can’t perform that action at this time.
0 commit comments