lld-link: Add --color-diagnostics(={always,never,auto})?, --no-color-diagnostics...
authorNico Weber <nicolasweber@gmx.de>
Thu, 10 May 2018 18:19:02 +0000 (18:19 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 10 May 2018 18:19:02 +0000 (18:19 +0000)
commitcac2b3349ede9faf34c8f8fd2553a036c701c22b
treee4044e3df83edf0c41103233a8f62f71b0d663ab
parentd6beb320b4573a7841e5bfda4aa83219356312ff
lld-link: Add --color-diagnostics(={always,never,auto})?, --no-color-diagnostics flags.

This is most useful when using lld-link on a non-Win host (but it might become
useful on Windows too if lld also grows a fansi-escape-codes flag).

Also make the help for --color-diagnostic mention the valid values in ELF and
wasm, and print the flag name with two dashes in diags, since the one-dash form
is seen as a list of many one-letter flags in some contexts.

https://reviews.llvm.org/D46693

llvm-svn: 332012
lld/COFF/DriverUtils.cpp
lld/COFF/Options.td
lld/ELF/DriverUtils.cpp
lld/ELF/Options.td
lld/wasm/Driver.cpp
lld/wasm/Options.td