Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 1d3e5d8

Browse files
bors[bot]vext01
andcommitted
Merge #16
16: Really install cargo r=ltratt a=vext01 Co-authored-by: Edd Barrett <[email protected]>
2 parents 4bec6f3 + 37225c0 commit 1d3e5d8

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.buildbot.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,26 @@
44

55
set -e
66

7+
export RUST_BACKTRACE=1
8+
export PATH=PATH=/opt/gdb-8.2/bin:${PATH}
9+
10+
TARBALL_TOPDIR=`pwd`/build/ykrustc-stage2-latest
11+
TARBALL_NAME=ykrustc-stage2-latest.tar.bz2
12+
SNAP_DIR=/opt/ykrustc-bin-snapshots
13+
714
# Ensure the build fails if it uses excessive amounts of memory.
815
ulimit -d $((1024 * 1024 * 8)) # 8 GiB
916

1017
# Note that the gdb must be Python enabled.
11-
/usr/bin/time -v env PATH=/opt/gdb-8.2/bin:${PATH} \
12-
RUST_BACKTRACE=1 ./x.py test --config .buildbot.toml
18+
/usr/bin/time -v ./x.py test --config .buildbot.toml
1319

14-
# Archive the build and put it in /opt
15-
TARBALL_TOPDIR=ykrustc-stage2
16-
TARBALL_NAME=ykrustc-stage2-latest.tar.bz2
17-
SNAP_DIR=/opt/ykrustc-bin-snapshots
20+
# Build extended tools and install into TARBALL_TOPDIR.
21+
mkdir -p ${TARBALL_TOPDIR}
22+
/usr/bin/time -v ./x.py install --config .buildbot.toml
1823

19-
cd build/x86_64-unknown-linux-gnu
20-
ln -sf stage2 ${TARBALL_TOPDIR}
24+
# Archive the build and put it in /opt
2125
git show -s HEAD > ${TARBALL_TOPDIR}/VERSION
22-
tar hjcvf ${TARBALL_NAME} ${TARBALL_TOPDIR}
26+
cd build
27+
tar jcf ${TARBALL_NAME} `basename ${TARBALL_TOPDIR}`
2328
chmod 775 ${TARBALL_NAME}
2429
mv ${TARBALL_NAME} ${SNAP_DIR} # Overwrites any old archive.

.buildbot.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ codegen-units = 0 # Use many compilation units.
55
debug-assertions = true # Turn on assertions in rustc.
66

77
[build]
8+
docs = false
89
extended = true
9-
tools = ["cargo", "rustfmt"]
10+
tools = ["cargo", "rustfmt", "rustdoc"]
1011

1112
[llvm]
1213
assertions = true # Turn on assertions in LLVM.
14+
15+
[install]
16+
prefix = "build/ykrustc-stage2-latest"
17+
sysconfdir = "etc"

0 commit comments

Comments
 (0)