Skip to content

Allow spaces in bootstrap Cargo rustflags#156096

Open
kupiakos wants to merge 1 commit into
rust-lang:mainfrom
kupiakos:spaces-in-bootstrap-rustflag
Open

Allow spaces in bootstrap Cargo rustflags#156096
kupiakos wants to merge 1 commit into
rust-lang:mainfrom
kupiakos:spaces-in-bootstrap-rustflag

Conversation

@kupiakos
Copy link
Copy Markdown
Contributor

@kupiakos kupiakos commented May 2, 2026

This is particularly useful when one's home directory contains a space. Without this change, the assert fails with my home directory when running x test, even when using subst (on Windows) to give the build directory its own drive letter.

This is particularly useful when one's home directory contains a space.
Without this change, the assert fails with my home directory, even
when using `subst` (on Windows) to give the build dir its own drive
letter.
@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 May 2, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 2, 2026

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

cargo.rustflags.propagate_rustflag_envs(cargo.build_compiler_stage);
cargo.rustdocflags.propagate_rustflag_envs(cargo.build_compiler_stage);

cargo.rustdocflags.propagate_cargo_env("RUSTDOCFLAGS");
Copy link
Copy Markdown
Member

@Mark-Simulacrum Mark-Simulacrum May 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to apply this here as well?

Is there a way we can add a test for this (e.g., maybe on one or more CI runners we can build in a directory with a path containing spaces)?

View changes since the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants