[PATCH] D153568: [ClangPackager] Add an option to extract inputs to an archive

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 22 09:23:47 PDT 2023


jhuber6 created this revision.
jhuber6 added reviewers: JonChesterfield, tra, yaxunl, jdoerfert, tianshilei1992, ronlieb, gregrodgers.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, jplehr, sstefan1.
Herald added a project: clang.

Currently we simply overwrite the output file if we get muliple matches
in the fatbinary. This patch introduces the `--archive` option which
allows us to combine all of the files into a static archive instead.
This is usefuly for creating a device specific static archive library
from a fatbinary.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153568

Files:
  clang/test/Driver/offload-packager.c
  clang/tools/clang-offload-packager/ClangOffloadPackager.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153568.533649.patch
Type: text/x-patch
Size: 6490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230622/7bcdd9d2/attachment.bin>


More information about the cfe-commits mailing list