[cfe-dev] Disable color errors globally?

Keane, Erich via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 18 14:11:03 PDT 2019


What about using a bash alias to add it?  Something like:

alias clang++="/usr/bin/clang++ -fno-diagnostic-color" (or whatever it ends up being)?

-----Original Message-----
From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of Ronald F. Guilmette via cfe-dev
Sent: Tuesday, June 18, 2019 2:08 PM
To: clang developer list <cfe-dev at lists.llvm.org>
Subject: Re: [cfe-dev] Disable color errors globally?

In message <CAL2T-v61We_KVFNcO8iyy0BOw7MwF7B_V-Gt7yBWyU6Ob4bwCw at mail.gmail.com>
Don Hinton <hintonda at gmail.com> wrote:

>Haven't investigated at all, but why not just set your terminal to not 
>display colors?, e.g., TERM=xterm, or something like that?

Ummm... my TERM environment variable is already set to xterm.

I see the pretty colors anyway.

Maybe I should try setting TERM to "bogus".  I guess I'll gve it a try.

(I guess I should also try also unsetting TERMCAP.)

It's an interesting question anyway.  If you inherited a bunch of code from somebody else, and didn't want to go groveling through all of the Makefiles in the whole tree, just to (universally) set some particular clang command line option for all complies, it might be be handy if clang were to support passing it options via some environment variable.

_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


More information about the cfe-dev mailing list