commit | e430b7b64f87d171e3975de8b4cb7bc7038cb4b4 | [log] [tgz] |
---|---|---|
author | Arvin Farahmand <arvinf@ip-logix.com> | Thu Apr 15 11:20:10 2021 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Apr 22 17:23:12 2021 -0400 |
tree | 9264fe7019051cae508235cfbdb8f687f6927dd7 | |
parent | 9e9a990ba0f8808044e45126bc73964c535b5341 [diff] |
cmake: gcc/clang: enable colour diagnostics in terminal output When compiler results are piped through a non-terminal (e.g. ninja) the compiler disables colour diagnostics. Using `-fdiagnostics-color` forces the compiler to enable colour output. This flag is always enabled for clang and gcc. Setting `CONFIG_COMPILER_COLOR_DIAGNOSTICS=n` disables this feature and reverts to plain diagnostic messages with no formatting. Signed-off-by: Arvin Farahmand <arvinf@ip-logix.com>