This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Tired of colorless compile errors? Enable color diagnostics today!
ClosedPublic

Authored by EricWF on Feb 18 2015, 9:33 AM.

Details

Summary

This patch adds a lit option to enable color diagnostics when either --param=color_diagnostics is passed to LIT or LIBCXX_COLOR_DIAGNOSTICS is present in the environment.

My only concern with this patch is that GCC and Clang take different flags and that only GCC 4.9 and greater support -fdiagnostics-color=always

Does anybody have objections to this going in?

Diff Detail

Event Timeline

EricWF updated this revision to Diff 20195.Feb 18 2015, 9:33 AM
EricWF retitled this revision from to [libcxx] Tired of colorless compile errors? Enable color diagnostics today!.
EricWF updated this object.
EricWF edited the test plan for this revision. (Show Details)
EricWF added reviewers: danalbert, jroelofs.
EricWF added a subscriber: Unknown Object (MLST).
danalbert accepted this revision.Feb 18 2015, 9:35 AM
danalbert edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Feb 18 2015, 9:35 AM
EricWF closed this revision.Feb 18 2015, 9:41 AM