[llvm-libtool-darwin] Allow flattening archives
authorSameer Arora <sameerarora101@fb.com>
Thu, 2 Jul 2020 21:32:55 +0000 (14:32 -0700)
committerSameer Arora <sameerarora101@fb.com>
Tue, 21 Jul 2020 20:53:15 +0000 (13:53 -0700)
commit9e783716a2249e333dfe731628b72dcda7e8c2d6
tree2b87cbb5ede9d04f595ca7620701f46e03d68a9a
parente138ad41e0e6609bf77df4859de1e3ac3d19c466
[llvm-libtool-darwin] Allow flattening archives

Add support for flattening archives while creating static libraries.
Hence, can now pass archives as input in addition to Mach-O binaries.
Furthermore, archives themselves must only conatain Mach-O binaries. As
per cctools' libtool's behavior, llvm-libtool-darwin does not flatten
archives recursively.

Reviewed by alexshap, smeenai, jhenderson

Differential Revision: https://reviews.llvm.org/D83520
llvm/test/tools/llvm-libtool-darwin/archive-flattening.test [new file with mode: 0644]
llvm/tools/llvm-libtool-darwin/CMakeLists.txt
llvm/tools/llvm-libtool-darwin/LLVMBuild.txt
llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp