Adds clang-cl support for the /ZH: option used to select MD5, SHA1,
or SHA_256 hashing algorithms in debug info.
Previously only the MD5 algorithm was supported.
Paths
| Differential D98438
Clang: Allow selecting the hash algorithm for file checksums in debug info. AbandonedPublic Authored by arlosi on Mar 11 2021, 10:20 AM.
Details
Summary Adds clang-cl support for the /ZH: option used to select MD5, SHA1, Previously only the MD5 algorithm was supported.
Diff Detail
Unit TestsFailed Event TimelineHerald added subscribers: jansvoboda11, dexonsmith, dang. · View Herald TranscriptMar 11 2021, 10:20 AM
arlosi marked an inline comment as done. Comment ActionsUse automatic marshaling for command line arguments. Comment Actions Sorry for not seeing this sooner. I think this looks great, just a few comments, and it also needs tests.
Comment Actions Do you think you'll have time to work on this? Otherwise I'd be happy to take it over. Comment Actions I wouldn't be able to look at this for a few weeks. If you have the time to Comment Actions I addressed pending comments, did some other minor tweaks, and uploaded the modified diff to D134544.
Revision Contents
Diff 330013 clang/include/clang/Basic/CodeGenOptions.h
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGDebugInfo.h
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Frontend/CompilerInvocation.cpp
|
Why does it need 4 bits? Wouldn't 2 be enough?