From 2f0e484f34c2f8cb24af4cc5da0f1ee38ebc7b9d Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 16 Apr 2017 19:28:25 +0000 Subject: [PATCH] Disable colored diagnostics in LLVM's lld. Requested by deraadt@ --- gnu/llvm/tools/lld/ELF/DriverUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/llvm/tools/lld/ELF/DriverUtils.cpp b/gnu/llvm/tools/lld/ELF/DriverUtils.cpp index 5ba494d791d..36b4052d72a 100644 --- a/gnu/llvm/tools/lld/ELF/DriverUtils.cpp +++ b/gnu/llvm/tools/lld/ELF/DriverUtils.cpp @@ -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) -- 2.20.1