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 4
4
5
5
set -e
6
6
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
+
7
14
# Ensure the build fails if it uses excessive amounts of memory.
8
15
ulimit -d $(( 1024 * 1024 * 8 )) # 8 GiB
9
16
10
17
# 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
13
19
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
18
23
19
- cd build/x86_64-unknown-linux-gnu
20
- ln -sf stage2 ${TARBALL_TOPDIR}
24
+ # Archive the build and put it in /opt
21
25
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} `
23
28
chmod 775 ${TARBALL_NAME}
24
29
mv ${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.
5
5
debug-assertions = true # Turn on assertions in rustc.
6
6
7
7
[build ]
8
+ docs = false
8
9
extended = true
9
- tools = [" cargo" , " rustfmt" ]
10
+ tools = [" cargo" , " rustfmt" , " rustdoc " ]
10
11
11
12
[llvm ]
12
13
assertions = 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