This is an archive of the discontinued LLVM Phabricator instance.

Use --color-diagnostics instead of -color-diagnostics.
ClosedPublic

Authored by ruiu on Jul 12 2017, 2:15 PM.

Details

Summary

Solaris ld interprets -color-diagnostics as a -c option, so it is
better to use --color-diagnostics. lld accepts both.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu created this revision.Jul 12 2017, 2:15 PM
fedor.sergeev accepted this revision.Jul 12 2017, 2:32 PM

LGTM, nice trick.

This revision is now accepted and ready to land.Jul 12 2017, 2:32 PM

Though, if you really want to make it LLD-only (as comments suggest) then you better check for LLD :)

ruiu added a comment.Jul 12 2017, 2:34 PM

The --color-diagnostics option is supported by lld only at the moment, but we could add the option to other linkers, so I think as long as a linker accepts it, we want to pass that flag.

This revision was automatically updated to reflect the committed changes.