[all-commits] [llvm/llvm-project] fe5599: [llvm-ar] Use target triple to deduce archive kind...

pirama-arumuga-nainar via All-commits all-commits at lists.llvm.org
Fri Mar 20 13:20:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fe5599eac6a57ad5a354e3b6fec9e97332304bac
      https://github.com/llvm/llvm-project/commit/fe5599eac6a57ad5a354e3b6fec9e97332304bac
  Author: Pirama Arumuga Nainar <pirama at google.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    A llvm/test/tools/llvm-ar/lto-kind-from-triple.test
    M llvm/tools/llvm-ar/llvm-ar.cpp

  Log Message:
  -----------
  [llvm-ar] Use target triple to deduce archive kind for bitcode inputs

Summary:
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.

Reviewers: compnerd, pcc, srhines, danalbert

Subscribers: hiraditya, MaskRay, steven_wu, dexonsmith, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76461




More information about the All-commits mailing list