Open
Metadata
Metadata
Assignees
Labels
Area: The compiletest test runnerArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Documentation for any part of the project, including the compiler, standard library, and toolsCategory: An issue proposing an enhancement or a PR with one.Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ChrisDenton commentedon Nov 16, 2024
Looks like it just hard codes the path, aside from using
ProgramFiles(x86)
environment variable as the base directory:rust/src/tools/compiletest/src/debuggers.rs
Line 79 in 46e8d20
jieyouxu commentedon Nov 16, 2024
That's kinda what I expected yeah. On one hand it saves you from having to manually specify it in
PATH
. On the other hand...ChrisDenton commentedon Nov 16, 2024
The simplest fix would be to check
PATH
first then fallback. However, it would be important to make sure that doesn't cause issues. E.g. we had problems with there being a msys2link.exe
that is not at all related to msvc'slink.exe
.ChrisDenton commentedon Nov 16, 2024
That said, I would note that there is a
--cdb
option for providing a path manually.jieyouxu commentedon Nov 16, 2024
AFAIK compiletest's cli are mostly for use by bootstrap, I'm not sure if that actually works. Maybe
./x test debuginfo -- --cdb=...
but I haven't double-checked yet.7 remaining items