Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/build-cproc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## $1 : version, currently cproc does not have any and only uses master branch.
## $2 : destination: a directory or S3 path (eg. s3://...)
## $3 : last revision successfully build
## $3 : last revision successfully build (optional)

set -ex

ROOT=$PWD
VERSION="${1}"
LAST_REVISION="${3}"
LAST_REVISION="${3-}"

if [[ "${VERSION}" != "master" ]]; then
echo "Only support building master"
Expand Down
4 changes: 2 additions & 2 deletions build/build-mrustc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## $1 : version, like v0.9 (tag) or master (branch)
## $2 : destination: a directory or S3 path (eg. s3://...)
## $3 : last revision successfully build
## $3 : last revision successfully build (optional)
set -exu

ROOT=$PWD
VERSION=$1
LAST_REVISION=$3
LAST_REVISION=${3-}
FULLNAME=mrustc-${VERSION}-$(date +%Y%m%d)

OUTPUT=${ROOT}/${FULLNAME}.tar.xz
Expand Down
6 changes: 3 additions & 3 deletions build/build-rustc-cg-gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## $1 : version, currently rustc_cg_gcc does not have any and only uses master branch.
## $2 : destination: a directory or S3 path (eg. s3://...)
## $3 : last revision (as mangled below) successfully build
## $3 : last revision (as mangled below) successfully build (optional)

set -e

ROOT=$PWD
VERSION="${1}"
LAST_REVISION="${3}"
LAST_REVISION="${3-}"

if [[ "${VERSION}" != "master" ]]; then
echo "Only support building master"
Expand All @@ -19,7 +19,7 @@ GCC_URL="https://github.com/antoyo/gcc.git"
GCC_BRANCH="master"

CG_GCC_BRANCH="master"
CG_GCC_URL="https://github.com/antoyo/rustc_codegen_gcc.git"
CG_GCC_URL="https://github.com/rust-lang/rustc_codegen_gcc.git"

GCC_REVISION=$(git ls-remote --heads "${GCC_URL}" "refs/heads/${GCC_BRANCH}" | cut -f 1)
CG_GCC_REVISION=$(git ls-remote --heads "${CG_GCC_URL}" "refs/heads/${CG_GCC_BRANCH}" | cut -f 1)
Expand Down