From 9cd77ce1691ff01e36fed4b9ad47e15096b74159 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 25 Mar 2016 18:09:29 +0000 Subject: [PATCH] [coff] Accept and ignore another link.exe flag for compatibility This flag disables link.exe's crash handler so that normal windows error reporting and crash dumping occurs. For now it is reasonable for LLD to ignore the flag. Chromium is currently using this flag to collect minidumps of link.exe crashing, and it breaks the LLD build. llvm-svn: 264439 --- lld/COFF/Driver.cpp | 1 + lld/COFF/Options.td | 1 + 2 files changed, 2 insertions(+) diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index e0fc239..2a71343 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -119,6 +119,7 @@ void LinkerDriver::parseDirectives(StringRef S) { Config->NoDefaultLibs.insert(doFindLib(Arg->getValue())); break; case OPT_editandcontinue: + case OPT_fastfail: case OPT_guardsym: case OPT_throwingnew: break; diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td index a21b8de..ceb25cc 100644 --- a/lld/COFF/Options.td +++ b/lld/COFF/Options.td @@ -110,6 +110,7 @@ def no_incremental : F<"incremental:no">; def nologo : F<"nologo">; def throwingnew : F<"throwingnew">; def editandcontinue : F<"editandcontinue">; +def fastfail : F<"fastfail">; def delay : QF<"delay">; def errorreport : QF<"errorreport">; -- 2.7.4