This repository was archived by the owner on Jan 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 44
55set -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.
815ulimit -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
2125git show -s HEAD > ${TARBALL_TOPDIR} /VERSION
22- tar hjcvf ${TARBALL_NAME} ${TARBALL_TOPDIR}
26+ cd build
27+ tar jcf ${TARBALL_NAME} ` basename ${TARBALL_TOPDIR} `
2328chmod 775 ${TARBALL_NAME}
2429mv ${TARBALL_NAME} ${SNAP_DIR} # Overwrites any old archive.
Original file line number Diff line number Diff line change @@ -5,8 +5,13 @@ codegen-units = 0 # Use many compilation units.
55debug-assertions = true # Turn on assertions in rustc.
66
77[build ]
8+ docs = false
89extended = true
9- tools = [" cargo" , " rustfmt" ]
10+ tools = [" cargo" , " rustfmt" , " rustdoc " ]
1011
1112[llvm ]
1213assertions = true # Turn on assertions in LLVM.
14+
15+ [install ]
16+ prefix = " build/ykrustc-stage2-latest"
17+ sysconfdir = " etc"
You can’t perform that action at this time.
0 commit comments