-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Tracking Issue for -Z src-hash-algorithm
#70401
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Add hash of source files in debug info LLVM supports placing the hash of source files inside the debug info. This information can be used by a debugger to verify that the source code matches the executable. This change adds support for both hash algorithms supported by LLVM, MD5 and SHA1, controlled by a target option. * DWARF only supports MD5 * LLVM IR supports MD5 and SHA1 (and SHA256 in LLVM 11). * CodeView (.PDB) supports MD5, SHA1, and SHA256. Fixes rust-lang#68980. Tracking issue: rust-lang#70401 rustc dev guide PR with further details: rust-lang/rustc-dev-guide#623
#73526 has been merged, updating LLVM to 11 and making it possible to support SHA256 as well. I guess for now one still has to give compatibility for older LLVMs though, so one maybe has to place a few cfg's here and there. |
Add support for SHA256 source file hashing Adds support for `-Z src-hash-algorithm sha256`, which became available in LLVM 11. Using an older version of LLVM will cause an error `invalid checksum kind` if the hash algorithm is set to sha256. r? @eddyb cc rust-lang#70401 @est31
Add support for SHA256 source file hashing Adds support for `-Z src-hash-algorithm sha256`, which became available in LLVM 11. Using an older version of LLVM will cause an error `invalid checksum kind` if the hash algorithm is set to sha256. r? `@eddyb` cc rust-lang#70401 `@est31`
Are there documentation changes needed for this? I'd be happy to help! |
☝️ @eddyb |
@pierwill It is currently documented as an unstable option here: https://doc.rust-lang.org/beta/unstable-book/compiler-flags/src-hash-algorithm.html I think the next step here would be to make a stabilization PR and adjust the documentation move it to the stable list of codegen options. |
Visited during T-compiler backlog bonanza It sounds like this is either ready to stabilize as is (with a shift from a Can we maybe get a summary of the current implementation status, as well as the tradeoffs between those two options, to inform that decision? @rustbot label: S-tracking-needs-summary |
This is the tracking issue for the unstable option
-Z src-hash-algorithm
Steps
Unresolved Questions
is_like_msvc
?The text was updated successfully, but these errors were encountered: