Skip to content

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Oct 6, 2025

When building with rust.rpath = false, every rustc invocation needs
to include the library path as well. I particularly ran into this in
generate_target_spec_json_schema when testing 1.91-beta in Fedora,
where we do disable rpath for our system builds. The new helper function
will hopefully encourage the right thing going forward.

@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 Oct 6, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 6, 2025

r? @Zalathar

rustbot has assigned @Zalathar.
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

@cuviper
Copy link
Member Author

cuviper commented Oct 6, 2025

I particularly ran into this [...] when testing 1.91-beta in Fedora,

@rustbot label beta-nominated

@rustbot rustbot added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Oct 6, 2025
@Zalathar
Copy link
Contributor

Zalathar commented Oct 7, 2025

r? bootstrap

@rustbot rustbot assigned Mark-Simulacrum and unassigned Zalathar Oct 7, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Oct 7, 2025

The idea makes sense to me. Want to hear a second opinion on the API and its naming.

When building with `rust.rpath = false`, every `rustc` invocation needs
to include the library path as well. I particularly ran into this in
`generate_target_spec_json_schema` when testing 1.91-beta in Fedora,
where we do disable rpath for our system builds. The new helper function
will hopefully encourage the right thing going forward.
@cuviper cuviper force-pushed the bootstrap-rustc-libs branch from babf9a2 to 03cdcb5 Compare October 7, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-nominated Nominated for backporting to the compiler in the beta channel. 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.

5 participants