[PATCH] D76461: [llvm-ar] Use target triple to deduce archive kind for bitcode inputs
Pirama Arumuga Nainar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 19 16:28:07 PDT 2020
pirama created this revision.
pirama added reviewers: compnerd, pcc, srhines, danalbert.
Herald added subscribers: rupprecht, dexonsmith, steven_wu, MaskRay, hiraditya.
Herald added a project: LLVM.
When using full LTO on cross-compile settings, instead of generating the
default archive kind of the host platform, we could deduce the archive
kind based on the target triple.
This specifically addresses https://github.com/android/ndk/issues/1209
by making it possible to drop llvm-ar in place of GNU ar without extra
flags.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76461
Files:
llvm/test/tools/llvm-ar/Inputs/elf.ll
llvm/test/tools/llvm-ar/Inputs/macho.ll
llvm/test/tools/llvm-ar/lto-kind-from-triple.test
llvm/tools/llvm-ar/llvm-ar.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76461.251497.patch
Type: text/x-patch
Size: 3547 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200319/c25b1960/attachment.bin>
More information about the llvm-commits
mailing list