[PATCH] D127864: [AIX] add object mode -X option for llvm-ar on AIX OS.

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 15 13:14:17 PDT 2022


daltenty added a comment.

In D127864#3585586 <https://reviews.llvm.org/D127864#3585586>, @shchenz wrote:

> Out of curious, why do we need to add `-X` option to `llvm-ar` like AIX system `ar`? If `llvm-ar` can automaticly detect the object file format on any OBJECT_MODE and generate related archive file, seems it is better than system `ar`?

There is still an interface compatibility problem without the option, many build system tools (e.g. CMake) will automatically generate the flag on AIX, so it's needed to be able to use `llvm-ar` as a drop in replacement for the system `ar`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127864/new/

https://reviews.llvm.org/D127864



More information about the llvm-commits mailing list