File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed
docker/host-x86_64/mingw-check Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -638,6 +638,7 @@ define_config! {
638638 dist_stage: Option <u32 > = "dist-stage" ,
639639 bench_stage: Option <u32 > = "bench-stage" ,
640640 patch_binaries_for_nix: Option <bool > = "patch-binaries-for-nix" ,
641+ // NOTE: only parsed by bootstrap.py, `--feature build-metrics` enables metrics unconditionally
641642 metrics: Option <bool > = "metrics" ,
642643 }
643644}
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
4040
4141ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
4242ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
43+ python3 ../x.py test --stage 0 src/tools/tidy && \
4344 python3 ../x.py check --target=i686-pc-windows-gnu --host=i686-pc-windows-gnu --all-targets && \
4445 python3 ../x.py build --stage 0 src/tools/build-manifest && \
4546 python3 ../x.py test --stage 0 src/tools/compiletest && \
46- python3 ../x.py test --stage 2 src/tools/tidy && \
4747 python3 ../x.py test --stage 0 core alloc std test proc_macro && \
4848 # Build both public and internal documentation.
4949 RUSTDOCFLAGS=\" --document-private-items --document-hidden-items\" python3 ../x.py doc --stage 0 library/test && \
Original file line number Diff line number Diff line change 5656if ! isCI || isCiBranch auto || isCiBranch beta || isCiBranch try || isCiBranch try-perf; then
5757 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
5858 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set build.metrics"
59+ HAS_METRICS=1
5960fi
6061
6162RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-sccache"
@@ -157,13 +158,6 @@ trap datecheck EXIT
157158# sccache server at the start of the build, but no need to worry if this fails.
158159SCCACHE_IDLE_TIMEOUT=10800 sccache --start-server || true
159160
160- if [ " $RUN_CHECK_WITH_PARALLEL_QUERIES " != " " ]; then
161- $SRC /configure --set rust.parallel-compiler
162- CARGO_INCREMENTAL=0 $PYTHON ../x.py check
163- rm -f config.toml
164- rm -rf build
165- fi
166-
167161$SRC /configure $RUST_CONFIGURE_ARGS
168162
169163retry make prepare
@@ -193,4 +187,21 @@ else
193187 do_make " $RUST_CHECK_TARGET "
194188fi
195189
190+ if [ " $RUN_CHECK_WITH_PARALLEL_QUERIES " != " " ]; then
191+ rm -f config.toml
192+ $SRC /configure --set rust.parallel-compiler
193+
194+ # Save the build metrics before we wipe the directory
195+ if [ $HAS_METRICS = 1 ]; then
196+ mv build/metrics.json .
197+ fi
198+ rm -rf build
199+ if [ $HAS_METRICS = 1 ]; then
200+ mkdir build
201+ mv metrics.json build
202+ fi
203+
204+ CARGO_INCREMENTAL=0 $PYTHON ../x.py check
205+ fi
206+
196207sccache --show-stats || true
You can’t perform that action at this time.
0 commit comments