Skip to content

Look for cdb location in the registry first#158743

Open
ChrisDenton wants to merge 1 commit into
rust-lang:mainfrom
ChrisDenton:find-cdb
Open

Look for cdb location in the registry first#158743
ChrisDenton wants to merge 1 commit into
rust-lang:mainfrom
ChrisDenton:find-cdb

Conversation

@ChrisDenton

Copy link
Copy Markdown
Member

This is more robust then assuming it's in Program Files. We still fallback to Program Files as a last resort.

@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 Jul 3, 2026
@rustbot

rustbot commented Jul 3, 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

Comment thread src/bootstrap/Cargo.toml
Comment on lines +69 to +70
[target.'cfg(windows)'.dependencies.windows-registry]
version = "0.6"

@ChrisDenton ChrisDenton Jul 3, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This does add a new dependency to bootstrap. Technically we could reuse the windows crate (it's only a couple of functions) but at the cost of doing the FFI ourselves.

View changes since the review

@rust-log-analyzer

This comment has been minimized.

This is more robust then assuming it's in Program Files. We still fallback to Program Files as a last resort.
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.

4 participants