Skip to content

Commit 552ffd0

Browse files
authored
Minor change in cproc, mrustc and rustc_cg_gcc (#16)
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/libc#2414 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
1 parent e22280d commit 552ffd0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Diff for: build/build-cproc.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

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

77
set -ex
88

99
ROOT=$PWD
1010
VERSION="${1}"
11-
LAST_REVISION="${3}"
11+
LAST_REVISION="${3-}"
1212

1313
if [[ "${VERSION}" != "master" ]]; then
1414
echo "Only support building master"

Diff for: build/build-mrustc.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

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

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

1313
OUTPUT=${ROOT}/${FULLNAME}.tar.xz

Diff for: build/build-rustc-cg-gcc.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

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

77
set -e
88

99
ROOT=$PWD
1010
VERSION="${1}"
11-
LAST_REVISION="${3}"
11+
LAST_REVISION="${3-}"
1212

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

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

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

0 commit comments

Comments
 (0)