Disable colored diagnostics.

from Brad (MAINTAINER)
This commit is contained in:
ajacoutot 2017-04-17 14:20:17 +00:00
parent 618e2db169
commit 84c0cec54f
2 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.141 2017/03/25 14:00:47 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.142 2017/04/17 14:20:17 ajacoutot Exp $
# XXX: Remember to bump MODCLANG_VERSION in lang/clang/clang.port.mk when
# updating this port.
@ -16,7 +16,7 @@ DISTNAME = llvm-${LLVM_V}.src
PKGNAME = llvm-${LLVM_V}
PKGNAME-main = llvm-${LLVM_V}
PKGNAME-python = py-llvm-${LLVM_V}
REVISION-main = 2
REVISION-main = 3
CATEGORIES = devel
DISTFILES = llvm-${LLVM_V}.src${EXTRACT_SUFX} \
cfe-${LLVM_V}.src${EXTRACT_SUFX} \

View File

@ -1,12 +1,22 @@
$OpenBSD: patch-tools_lld_ELF_DriverUtils_cpp,v 1.3 2017/03/25 14:00:47 ajacoutot Exp $
$OpenBSD: patch-tools_lld_ELF_DriverUtils_cpp,v 1.4 2017/04/17 14:20:17 ajacoutot Exp $
- Disable colored diagnostics.
- Print out "supported targets".
- Refine comment.
- [ELF] Print two more MIPS targets "supported" by LLD
- Handle the OpenBSD-style major/minor shared library version scheme.
--- tools/lld/ELF/DriverUtils.cpp.orig Fri Jan 6 05:04:35 2017
+++ tools/lld/ELF/DriverUtils.cpp Thu Mar 23 23:33:21 2017
+++ tools/lld/ELF/DriverUtils.cpp Sun Apr 16 15:32:46 2017
@@ -59,7 +59,7 @@ static bool getColorDiagnostics(opt::InputArgList &Arg
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)
@@ -120,6 +120,20 @@ opt::InputArgList ELFOptTable::parse(ArrayRef<const ch
void elf::printHelp(const char *Argv0) {
ELFOptTable Table;