[PATCH] D86359: [llvm-libtool-darwin] Add support for -V option

Shoaib Meenai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 10:54:22 PDT 2020


smeenai created this revision.
smeenai added reviewers: alexshap, jhenderson, MaskRay, sameerarora101.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
smeenai requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86359

Files:
  llvm/test/tools/llvm-libtool-darwin/invalid-input-output-args.test
  llvm/test/tools/llvm-libtool-darwin/missing-library-type.test
  llvm/test/tools/llvm-libtool-darwin/version.test
  llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86359.287064.patch
Type: text/x-patch
Size: 5895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200821/55a56e30/attachment.bin>


More information about the llvm-commits mailing list