[lld] Small patch to ignore "/natvis:..." flag in the COFF / lld-link.exe frontend.

Michael Rickert via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 10 19:24:04 PDT 2017


MSVC's link.exe supports an undocumented flag, /natvis:path/to/a/file.natvis, which will embed natvis files into generated pdbs - useful for dealing with multiple versions and ease of use when debugging (no IDE setup required!)

The attached patch simply makes LLVM's lld-link.exe ignore this flag for now, fixing a recent rustc regression of mine:  https://github.com/rust-lang/rust/pull/43221#issuecomment-328276585 .  I intend to add a "temporary" workaround on rustc's end as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/eaa29f9d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ignore-natvis.patch
Type: application/octet-stream
Size: 45699 bytes
Desc: ignore-natvis.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/eaa29f9d/attachment.obj>


More information about the llvm-commits mailing list