[all-commits] [llvm/llvm-project] 4e2aee: [AIX] Remove --as-needed passing into aix linker

Jason Liu via All-commits all-commits at lists.llvm.org
Thu Jun 17 10:17:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e2aee8d3bab6010420d9be96480f1d8ae0f35c1
      https://github.com/llvm/llvm-project/commit/4e2aee8d3bab6010420d9be96480f1d8ae0f35c1
  Author: jasonliu <jasonliu.development at gmail.com>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/aix-ld.c

  Log Message:
  -----------
  [AIX] Remove --as-needed passing into aix linker

Summary:
AIX does not support --as-needed linker options. Remove that option from
aix linker when -lunwind is needed.
For unwinder library, nothing special is needed because by default aix
linker has the as-needed effect for library that's an archive (which is
the case for libunwind on AIX).

Reviewed By: daltenty

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




More information about the All-commits mailing list