Skip to content

fix: bootstrap build directory handling with --set - #166641

Merged
rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
paradoxicalguy:fix-bootstrap-build-dir-override
Nov 27, 2026
Merged

rust-bors[bot] merged 2 commits into
rust-lang:mainfrom
paradoxicalguy:fix-bootstrap-build-dir-override

Conversation

@paradoxicalguy

@paradoxicalguy paradoxicalguy commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

fixes #166607
handle --set build.build-dir in python bootstrap using the existing toml parser, so both bootstrap implementations use the same directory.
added unit tests and verified the original repro.
cc @Kobzol

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 27, 2026
@rustbot

rustbot commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: bootstrap
  • bootstrap expanded to 6 candidates
  • Random selection from Mark-Simulacrum, clubby789, jieyouxu

@rust-log-analyzer

This comment has been minimized.

@Kobzol

Kobzol commented Nov 27, 2026

Copy link
Copy Markdown
Member

Uh, GitHub didn't send me a notification with your question from #166607.

r? me

Makes sense, thank you.

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 6a39e94 has been approved by Kobzol

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 27, 2026
@paradoxicalguy

Copy link
Copy Markdown
Member Author

thank you ( =∩ω∩= )

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 27, 2026
…-dir-override, r=Kobzol

fix: bootstrap build directory handling with --set

fixes rust-lang#166607
handle `--set build.build-dir` in python bootstrap using the existing toml parser, so both bootstrap implementations use the same directory.
added unit tests and verified the original repro.
cc @Kobzol
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope)
 - #163910 (debugger: stabilize trim-paths unremap file loading)
 - #166175 (Use `__fastfail()` for `crash()` on Windows)
 - #166377 (fix: ignore format literal source availability in stable hashes)
 - #166510 (add c-variadic support for `x87_f80`)
 - #166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`)
 - #161531 (Remove `T: Send + Sync` bound from `Arc::downcast`)
 - #166641 (fix: bootstrap build directory handling with --set)
 - #166655 (Submodule update of rustc-perf)
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - #163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope)
 - #163910 (debugger: stabilize trim-paths unremap file loading)
 - #166377 (fix: ignore format literal source availability in stable hashes)
 - #166510 (add c-variadic support for `x87_f80`)
 - #166631 (Remove `fn terminator()` and `terminator_mut()`)
 - #166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`)
 - #161531 (Remove `T: Send + Sync` bound from `Arc::downcast`)
 - #166641 (fix: bootstrap build directory handling with --set)
 - #166655 (Submodule update of rustc-perf)
@rust-bors
rust-bors Bot merged commit ccf8034 into rust-lang:main Nov 27, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 27, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 27, 2026
Rollup merge of #166641 - paradoxicalguy:fix-bootstrap-build-dir-override, r=Kobzol

fix: bootstrap build directory handling with --set

fixes #166607
handle `--set build.build-dir` in python bootstrap using the existing toml parser, so both bootstrap implementations use the same directory.
added unit tests and verified the original repro.
cc @Kobzol
mehmettoplu-rs pushed a commit to mehmettoplu-rs/miri that referenced this pull request Nov 28, 2026
…uwer

Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#163895 (Stabilize `--remap-path-scope` in rustdoc and the `documentation` scope)
 - rust-lang/rust#163910 (debugger: stabilize trim-paths unremap file loading)
 - rust-lang/rust#166377 (fix: ignore format literal source availability in stable hashes)
 - rust-lang/rust#166510 (add c-variadic support for `x87_f80`)
 - rust-lang/rust#166631 (Remove `fn terminator()` and `terminator_mut()`)
 - rust-lang/rust#166650 (Don't round the number of bits passed to `{Size,Align}::from_bits`)
 - rust-lang/rust#161531 (Remove `T: Send + Sync` bound from `Arc::downcast`)
 - rust-lang/rust#166641 (fix: bootstrap build directory handling with --set)
 - rust-lang/rust#166655 (Submodule update of rustc-perf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bootstrap panics when setting a nonexistent build directory via --set build.build-dir

5 participants