Closed diresi closed 5 months ago
Does this behavior still occur with Rust 1.79?
Prior to 1.79, this unintentionally disabled the generation of *.pdb files on MSVC, resulting in the absence of symbols.
Source: https://doc.rust-lang.org/rustc/codegen-options/index.html#strip
I need to step up my google-fu, you're obviously right! Let's close this issue then.
(Ahem. Unless you wanna add some skip-pdb flag for those poor people stuck with 1.75 for a while. But do you?)
Ah, no worries, we're good as it seems. strip doesn't make a difference in that particular binary, so why bother?
Current Behavior
On Windows, using
strip=true
inCargo.toml
causes builds to fail while copying byproducts as no PDB files are generated and attempts to copy them fail.Using
strip=false
doesn't show the problem, byproducts are created and copied just fine.Expected Behavior
strip=true
should be supported, PDB files should be optional.Steps To Reproduce
cargo new thing
strip=true
inCargo.toml
section[profile.release]
cmake $PATH
&&cmake --build . --profile Release
Cargo.toml:
Environment
CMake configure log with Debug log-level
CMake Build step log