GCC has supported -fdiagnostics-color since 4.9.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Why do we hardcode compiler IDs/versions here instead of just checking whether the current compiler supports the flag?
Comment Actions
It has the same effect and doesn't require yet another compiler call at cmake time, and once we uprev gcc requirements to 4.9 (soooon) we can just delete the whole condition in the parens.
Comment Actions
lgtm
cmake/modules/HandleLLVMOptions.cmake | ||
---|---|---|
726–729 | Should we simplify these compiler version checks to add_flag_if_supported("-fdiagnostics-color")? We'd still need the UNIX && ninja check. |
Should we simplify these compiler version checks to add_flag_if_supported("-fdiagnostics-color")? We'd still need the UNIX && ninja check.