[coff] Accept and ignore another link.exe flag for compatibility
authorReid Kleckner <rnk@google.com>
Fri, 25 Mar 2016 18:09:29 +0000 (18:09 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 25 Mar 2016 18:09:29 +0000 (18:09 +0000)
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
lld/COFF/Options.td

index e0fc239..2a71343 100644 (file)
@@ -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;
index a21b8de..ceb25cc 100644 (file)
@@ -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">;