Skip to content

Commit 8fa5fc6

Browse files
committed
Do not forward CI configure arguments to distcheck builds
1 parent 89f9cf3 commit 8fa5fc6

File tree

2 files changed

+8
-1
lines changed
  • src
    • bootstrap/src/core/build_steps
    • ci/docker/host-x86_64/x86_64-gnu-distcheck

2 files changed

+8
-1
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3127,6 +3127,10 @@ impl Step for Distcheck {
31273127
let plain_src_dir = root_dir.join("distcheck-plain-src");
31283128
builder.clear_dir(&plain_src_dir);
31293129

3130+
let configure_args: Vec<String> = std::env::var("DISTCHECK_CONFIGURE_ARGS")
3131+
.map(|args| args.split(" ").map(|s| s.to_string()).collect::<Vec<String>>())
3132+
.unwrap_or(vec![]);
3133+
31303134
command("tar")
31313135
.arg("-xf")
31323136
.arg(plain_src_tarball.tarball())
@@ -3136,7 +3140,7 @@ impl Step for Distcheck {
31363140
command("./configure")
31373141
.arg("--set")
31383142
.arg("rust.omit-git-hash=false")
3139-
.args(&builder.config.configure_args)
3143+
.args(&configure_args)
31403144
.arg("--enable-vendor")
31413145
.current_dir(&plain_src_dir)
31423146
.run(builder);

src/ci/docker/host-x86_64/x86_64-gnu-distcheck/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3333
COPY scripts/sccache.sh /scripts/
3434
RUN sh /scripts/sccache.sh
3535

36+
# Make distcheck builds faster
37+
ENV DISTCHECK_CONFIGURE_ARGS "--enable-sccache"
38+
3639
ENV SCRIPT python3 ../x.py test distcheck

0 commit comments

Comments
 (0)