From 27b9c4285364d8d76bb43839daa100c2f80f8329 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 11 Sep 2017 22:24:13 +0000 Subject: [PATCH] Ignore /natvis option for now. /natvis is a new command line option introduced by MSVC 2017. We eventually have to support it, but for now, let's ignore it so that we can at least link stuff instead of printing out an error. Patch by Michael Rickert. git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@312966 91177308-0d34-0410-b5e6-96231b3b80d8 --- COFF/Driver.cpp | 1 + COFF/Options.td | 1 + 2 files changed, 2 insertions(+) diff --git a/COFF/Driver.cpp b/COFF/Driver.cpp index e07bdac46..6fde6313f 100644 --- a/COFF/Driver.cpp +++ b/COFF/Driver.cpp @@ -241,6 +241,7 @@ void LinkerDriver::parseDirectives(StringRef S) { case OPT_editandcontinue: case OPT_fastfail: case OPT_guardsym: + case OPT_natvis: case OPT_throwingnew: break; default: diff --git a/COFF/Options.td b/COFF/Options.td index 0a6472cb5..eb68f840c 100644 --- a/COFF/Options.td +++ b/COFF/Options.td @@ -135,6 +135,7 @@ def errorreport : QF<"errorreport">; def idlout : QF<"idlout">; def ignore : QF<"ignore">; def maxilksize : QF<"maxilksize">; +def natvis : QF<"natvis">; def pdbaltpath : QF<"pdbaltpath">; def tlbid : QF<"tlbid">; def tlbout : QF<"tlbout">;