![]() link.exe: Don't embed full path to PDB file in binary. This PR makes `rustc` unconditionally pass `/PDBALTPATH:%_PDB%` to MSVC-style linkers, causing the linker to only embed the filename of the PDB in the binary instead of the full path. This will help implement the [trim-paths RFC](https://github.com/rust-lang/rust/issues/111540) for `*-msvc` targets. Passing `/PDBALTPATH:%_PDB%` to the linker is already done by many projects that need reproducible builds and [debugger's should still be able to find the PDB](https://learn.microsoft.com/cpp/build/reference/pdbpath) if it is in the same directory as the binary. r? `@ghost` Fixes https://github.com/rust-lang/rust/issues/87825 |
||
---|---|---|
.. | ||
back | ||
debuginfo | ||
mir | ||
traits | ||
assert_module_sources.rs | ||
base.rs | ||
codegen_attrs.rs | ||
common.rs | ||
errors.rs | ||
lib.rs | ||
meth.rs | ||
mono_item.rs | ||
size_of_val.rs | ||
target_features.rs |