File tree Expand file tree Collapse file tree 4 files changed +32
-9
lines changed
docker/host-x86_64/dist-x86_64-linux Expand file tree Collapse file tree 4 files changed +32
-9
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,13 @@ ENV RUST_CONFIGURE_ARGS \
96
96
--set rust.lto=thin \
97
97
--set rust.codegen-units=1
98
98
99
- # Note that `rust.debug` is set to true *only* for `opt-dist`
100
- ENV SCRIPT python3 ../x.py build --set rust.debug=true opt-dist && \
101
- ./build/$HOSTS/stage0-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \
102
- --host $HOSTS --target $HOSTS \
103
- --include-default-paths \
104
- build-manifest bootstrap && \
105
- # Use GCC for building GCC, as it seems to behave badly when built with Clang
106
- CC=/rustroot/bin/cc CXX=/rustroot/bin/c++ python3 ../x.py dist gcc
99
+ ARG SCRIPT_ARG
100
+
101
+ COPY host-x86_64/dist-x86_64-linux/dist.sh /scripts/
102
+ COPY host-x86_64/dist-x86_64-linux/dist-alt.sh /scripts/
103
+
104
+ ENV SCRIPT /scripts/${SCRIPT_ARG}
105
+
107
106
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
108
107
109
108
# This is the only builder which will create source tarballs
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eux
4
+
5
+ python3 ../x.py dist \
6
+ --host $HOSTS --target $HOSTS \
7
+ --include-default-paths \
8
+ build-manifest bootstrap
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eux
4
+
5
+ python3 ../x.py build --set rust.debug=true opt-dist
6
+
7
+ ./build/$HOSTS /stage0-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \
8
+ --host $HOSTS --target $HOSTS \
9
+ --include-default-paths \
10
+ build-manifest bootstrap
11
+
12
+ # Use GCC for building GCC, as it seems to behave badly when built with Clang
13
+ CC=/rustroot/bin/cc CXX=/rustroot/bin/c++ python3 ../x.py dist gcc
Original file line number Diff line number Diff line change 141
141
- name : dist-x86_64-linux
142
142
env :
143
143
CODEGEN_BACKENDS : llvm,cranelift
144
+ DOCKER_SCRIPT : dist.sh
144
145
<< : *job-linux-36c-codebuild
145
146
146
147
# Main CI jobs that have to be green to merge a commit into master
@@ -237,13 +238,15 @@ auto:
237
238
- name : dist-x86_64-linux
238
239
env :
239
240
CODEGEN_BACKENDS : llvm,cranelift
241
+ DOCKER_SCRIPT : dist.sh
240
242
<< : *job-linux-36c-codebuild
241
243
242
244
- name : dist-x86_64-linux-alt
243
245
env :
244
246
IMAGE : dist-x86_64-linux
245
247
CODEGEN_BACKENDS : llvm,cranelift
246
- << : *job-linux-16c
248
+ DOCKER_SCRIPT : dist-alt.sh
249
+ << : *job-linux-4c
247
250
248
251
- name : dist-x86_64-musl
249
252
env :
You can’t perform that action at this time.
0 commit comments