[cfe-dev] Disable color errors globally?

Dmitri Gribenko via cfe-dev cfe-dev at lists.llvm.org
Wed Jun 19 03:04:49 PDT 2019


On Wed, Jun 19, 2019 at 12:05 AM Ronald F. Guilmette via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
>
> In message <D0DD9254EE9DB04FA7C8606D0828DA6AD3A8DE13 at ORSMSX122.amr.corp.intel.c
> om>, "Keane, Erich" <erich.keane at intel.com> wrote:
>
> >What about using a bash alias to add it?
>
> I guess that will be the solution, yes.
>
> I just wanted to know if clang already had some in-built mechanism, like
> for example, accepting options thru some particular envar.

CCC_OVERRIDE_OPTIONS="+-fno-color-diagnostics" clang /tmp/f.cc

You can find the implementation in clang/tools/driver/driver.cpp.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list