-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i686-pc-windows-msvc: remove pdb file #67012
Comments
Have you tried compiling without debug info? |
I tried set debug=false in cargo.toml, but pdb file still existed. |
Cargo does not remove old files when recompiling. Deleting the file should work. |
I delete the whole target folder, set "[profile.release] debug = false" in cargo.toml, then execute “cargo build --release”, the pdb file is still there. Is there something I ignored ? |
Rust will always ask the linker to emit debug info for Is the issue that emitting a PDB file causes the linker to hardcode a path to the PDB in your binary and you don't want that for security reasons? If so, you can use the |
Thinks, that's the solution. |
Closes as resolved. |
I compile on i686-pc-windows-msvc, the output file (*.exe) include RSDS information. I do not need pdb file, how can I remove it ?
The text was updated successfully, but these errors were encountered: