Skip to content

Commit

Permalink
Minor change in cproc, mrustc and rustc_cg_gcc
Browse files Browse the repository at this point in the history
Make the last revision argument optional for easier local use.

Change git URL for rustc_cg_gcc as it's now part of rust-lang:

 rust-lang/rust#87260

Signed-off-by: Marc Poulhiès <[email protected]>
  • Loading branch information
dkm committed Oct 2, 2021
1 parent 2de16dc commit 99ec222
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit 99ec222

Please sign in to comment.