Disable colored diagnostics in LLVM's lld.
authorpatrick <patrick@openbsd.org>
Sun, 16 Apr 2017 19:28:25 +0000 (19:28 +0000)
committerpatrick <patrick@openbsd.org>
Sun, 16 Apr 2017 19:28:25 +0000 (19:28 +0000)
Requested by deraadt@

gnu/llvm/tools/lld/ELF/DriverUtils.cpp

index 5ba494d..36b4052 100644 (file)
@@ -59,7 +59,7 @@ static bool getColorDiagnostics(opt::InputArgList &Args) {
   auto *Arg = Args.getLastArg(OPT_color_diagnostics, OPT_color_diagnostics_eq,
                               OPT_no_color_diagnostics);
   if (!Arg)
-    return Default;
+    return false;
   if (Arg->getOption().getID() == OPT_color_diagnostics)
     return true;
   if (Arg->getOption().getID() == OPT_no_color_diagnostics)