File tree 4 files changed +15
-8
lines changed
src/ci/docker/host-x86_64
4 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /usr/ bin/env bash
2
2
3
3
set -ex
4
4
5
5
cd $1
6
6
7
+ source shared.sh
8
+
7
9
# Setting up folders for GCC
8
10
git clone https://github.com/antoyo/gcc gcc-src
9
11
cd gcc-src
@@ -14,15 +16,17 @@ mkdir ../gcc-build ../gcc-install
14
16
cd ../gcc-build
15
17
16
18
# Building GCC.
17
- ../gcc-src/configure \
19
+ hide_output \
20
+ ../gcc-src/configure \
18
21
--enable-host-shared \
19
22
--enable-languages=jit \
20
23
--enable-checking=release \
21
24
--disable-bootstrap \
22
25
--disable-multilib \
23
- --prefix=$( pwd) /../gcc-install
24
- make
25
- make install
26
+ --prefix=$( pwd) /../gcc-install \
27
+
28
+ hide_output make -j$( nproc)
29
+ hide_output make install
26
30
27
31
rm -rf ../gcc-src
28
32
ln -s /scripts/gcc-install/lib/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
Original file line number Diff line number Diff line change @@ -59,8 +59,9 @@ ENV RUST_CONFIGURE_ARGS \
59
59
60
60
COPY host-x86_64/x86_64-gnu-llvm-16/script.sh /tmp/
61
61
62
+ COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
62
63
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/
63
64
64
- RUN sh /scripts/build-gccjit.sh /scripts
65
+ RUN /scripts/build-gccjit.sh /scripts
65
66
66
67
ENV SCRIPT /tmp/script.sh
Original file line number Diff line number Diff line change @@ -58,8 +58,9 @@ ENV RUST_CONFIGURE_ARGS \
58
58
59
59
COPY host-x86_64/x86_64-gnu-llvm-16/script.sh /tmp/
60
60
61
+ COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
61
62
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/
62
63
63
- RUN sh /scripts/build-gccjit.sh /scripts
64
+ RUN /scripts/build-gccjit.sh /scripts
64
65
65
66
ENV SCRIPT /tmp/script.sh
Original file line number Diff line number Diff line change @@ -95,9 +95,10 @@ ENV RUST_CONFIGURE_ARGS \
95
95
96
96
ENV HOST_TARGET x86_64-unknown-linux-gnu
97
97
98
+ COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
98
99
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/
99
100
100
- RUN sh /scripts/build-gccjit.sh /scripts
101
+ RUN /scripts/build-gccjit.sh /scripts
101
102
102
103
ENV SCRIPT /tmp/checktools.sh ../x.py && \
103
104
NODE_PATH=`npm root -g` python3 ../x.py test tests/rustdoc-gui --stage 2 \
You can’t perform that action at this time.
0 commit comments