[PATCH] D84770: [llvm-libtool-darwin] Add support for -arch_only

Sameer Arora via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 28 10:28:04 PDT 2020


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

Add support for -arch_only option for llvm-libtool-darwin. This diff
also adds support for accepting universal files as input and flattening
them to create the required static library. Supports input universal
files contaning both Mach-O object files or archives.

Differences from cctools' libtool:

- `-arch_only` can be specified multiple times
- archives containing universal files are considered invalid (libtool

allows such archives)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84770

Files:
  llvm/test/tools/llvm-libtool-darwin/cpu-subtype-matching.test
  llvm/test/tools/llvm-libtool-darwin/universal-file-flattening.test
  llvm/tools/llvm-libtool-darwin/CMakeLists.txt
  llvm/tools/llvm-libtool-darwin/LLVMBuild.txt
  llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84770.281282.patch
Type: text/x-patch
Size: 27429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200728/74aebbd9/attachment.bin>


More information about the llvm-commits mailing list