This is an archive of the discontinued LLVM Phabricator instance.

[llvm-libtool-darwin] Add support for -V option
ClosedPublic

Authored by smeenai on Aug 21 2020, 10:54 AM.

Details

Summary

The -V option in cctools' libtool prints out the version number and
performs any specified operation. Add this option to LLVM's version.
cctools is more forgiving of invalid command lines when -V is specified,
but I think it's better to give errors instead of silently producing no
output.

Unfortunately, when -V is present, options that would otherwise be
required aren't anymore, so we need to perform some manual argument
validation.

Diff Detail

Event Timeline

smeenai created this revision.Aug 21 2020, 10:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2020, 10:54 AM
smeenai requested review of this revision.Aug 21 2020, 10:54 AM
This revision is now accepted and ready to land.Aug 24 2020, 12:35 PM
This revision was automatically updated to reflect the committed changes.

It looks like no documentation was added for the new option. Please add it!

llvm/test/tools/llvm-libtool-darwin/version.test
7

Nit: here and each other comment in the test - missing full stop.

It looks like no documentation was added for the new option. Please add it!

Thanks for the reminder! Addressed that and the other comment in rG22cd6bee4a7d.

It looks like no documentation was added for the new option. Please add it!

Thanks for the reminder! Addressed that and the other comment in rG22cd6bee4a7d.

Thanks!