-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify the boostrap hashes a bit build with bundled llvm: the rust project has forked the llvm compiler to solve some issues. With pkgs.llvm the test suite fails. See rust-lang/rust#43026 And PR #30088
- Loading branch information
Showing
4 changed files
with
40 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# All rust-related downloads can be found at | ||
# https://static.rust-lang.org/dist/index.html. To find the date on | ||
# which a particular thing was last updated, look for the *-date.txt | ||
# file, e.g. | ||
# https://static.rust-lang.org/dist/channel-rust-beta-date.txt | ||
|
||
PLATFORMS="i686-unknown-linux-gnu x86_64-unknown-linux-gnu i686-apple-darwin x86_64-apple-darwin" | ||
BASEURL="https://static.rust-lang.org/dist" | ||
DATE=$1 | ||
VERSION=$2 | ||
PLATFORMS=( | ||
i686-unknown-linux-gnu | ||
x86_64-unknown-linux-gnu | ||
i686-apple-darwin | ||
x86_64-apple-darwin | ||
) | ||
BASEURL=https://static.rust-lang.org/dist | ||
VERSION=${1:-} | ||
DATE=${2:-} | ||
|
||
if [[ -z $DATE ]] | ||
if [[ -z $VERSION ]] | ||
then | ||
echo "No date supplied" | ||
echo "No version supplied" | ||
exit -1 | ||
fi | ||
|
||
if [[ -z $VERSION ]] | ||
if [[ -n $DATE ]] | ||
then | ||
echo "No version supplied" | ||
exit -1 | ||
BASEURL=$BASEURL/$DATE | ||
fi | ||
|
||
for PLATFORM in $PLATFORMS | ||
for PLATFORM in "${PLATFORMS[@]}" | ||
do | ||
URL="$BASEURL/$DATE/rust-$VERSION-$PLATFORM.tar.gz.sha256" | ||
curl $URL | ||
URL="$BASEURL/rust-$VERSION-$PLATFORM.tar.gz.sha256" | ||
SHA256=$(curl -sSfL $URL | cut -d ' ' -f 1) | ||
echo "$PLATFORM = \"$SHA256\";" | ||
done |