[PATCH] D123142: [llvm-ar] Fix thin archive being wrongly converted to a full archive

Owen Reynolds via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 09:45:23 PDT 2022


gbreynoo created this revision.
gbreynoo added reviewers: MaskRay, jhenderson, Jake-Egan, DiggerLin.
Herald added subscribers: StephenFan, rupprecht.
Herald added a project: All.
gbreynoo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When using the `L` option to quick append a full archive to a thin archive, the thin archive was being wrongly converted to a full archive. I've fixed the issue and added a check for it in `thin-to-full-archive.test`. I also expanded some tests including using `--thin` rather than the deprecated `T`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123142

Files:
  llvm/test/tools/llvm-ar/flatten-thin-archive.test
  llvm/test/tools/llvm-ar/full-to-thin-archive.test
  llvm/test/tools/llvm-ar/thin-to-full-archive.test
  llvm/tools/llvm-ar/llvm-ar.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123142.420553.patch
Type: text/x-patch
Size: 6235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220405/e3ea4eeb/attachment.bin>


More information about the llvm-commits mailing list