how to use -f[no-]color-diagnostics clang option with ports
Max Brazhnikov
makc at freebsd.org
Thu Feb 21 13:25:09 UTC 2013
On Thu, 21 Feb 2013 12:49:30 +0000 Anton Shterenlikht wrote:
> clang colours corrupt script() output, e.g.:
>
> #warning This file includes at least one deprecated or antiquated header. \
> ^[[0;1;32m ^
> ^[[0m1 warning generated.
> ^[[31m^[[1mLinking CXX executable ../../../bin/pvbatch
> ^[[0m[ 91%] Built target pvbatch-real
>
> Can I use something like this
>
> CFLAGS+= -fno-color-diagnostics
> CXXFLAGS+= -fno-color-diagnostics
>
> to suppress colour?
CMAKE_ARGS+= -DCMAKE_COLOR_MAKEFILE=off
Max
More information about the freebsd-ports
mailing list