This is an archive of the discontinued LLVM Phabricator instance.

[clang][pdb] Don't include -fmessage-length in PDB buildinfo
ClosedPublic

Authored by thieta on Nov 3 2022, 2:41 AM.

Details

Summary

As discussed in https://reviews.llvm.org/D136474 -fmessage-length
creates problems with reproduciability in the PDB files.

This patch just drops that argument when writing the PDB file.

Diff Detail

Event Timeline

thieta created this revision.Nov 3 2022, 2:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 3 2022, 2:41 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
thieta requested review of this revision.Nov 3 2022, 2:41 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 3 2022, 2:41 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hans accepted this revision.Nov 7 2022, 10:24 AM

lgtm with nits

clang/test/CodeGen/debug-info-codeview-buildinfo.c
47

could this be just
MESSAGELEN-NOT: -fmessage-length
?

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
911

nit: Period at the end (though I know we're not super consistent about this).

This revision is now accepted and ready to land.Nov 7 2022, 10:24 AM
thieta updated this revision to Diff 473912.Nov 8 2022, 1:05 AM

Updated from feedback

This revision was landed with ongoing or failed builds.Nov 8 2022, 1:06 AM
This revision was automatically updated to reflect the committed changes.