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

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 13:48:54 PDT 2017


CCing Rui.

In my experience, patches usually get more visibility if you upload them to Phabricator.

From: llvm-commits <llvm-commits-bounces at lists.llvm.org> on behalf of Michael Rickert via llvm-commits <llvm-commits at lists.llvm.org>
Reply-To: Michael Rickert <mike at maulingmonkey.com>
Date: Sunday, September 10, 2017 at 7:49 PM
To: "llvm-commits at lists.llvm.org" <llvm-commits at lists.llvm.org>
Subject: [lld] Small patch to ignore "/natvis:..." flag in the COFF / lld-link.exe frontend.

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/70f2a6b0/attachment.html>


More information about the llvm-commits mailing list