[all-commits] [llvm/llvm-project] 75d4f5: [AIX] Build libLTO as MODULE rather than SHARED

David Tenty via All-commits all-commits at lists.llvm.org
Thu Jun 10 09:10:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75d4f55d150cd3d38797ec228fc871bed93b8540
      https://github.com/llvm/llvm-project/commit/75d4f55d150cd3d38797ec228fc871bed93b8540
  Author: David Tenty <daltenty at ibm.com>
  Date:   2021-06-10 (Thu, 10 Jun 2021)

  Changed paths:
    M llvm/tools/lto/CMakeLists.txt

  Log Message:
  -----------
  [AIX] Build libLTO as MODULE rather than SHARED

On CMake versions greater that >= 3.16 on AIX, shared libraries are
created as archives (which is the normal form for the platform). However
plugins libraries which are passed directly to a executable, like
libLTO to the linker, are usual build as plain `.so`, so this patch
restores this behaviour for libLTO on AIX (and adjust the name if need be
to account for the fact that llvm_add_library likes to force an empty
name prefix on modules), so we end up with the expected libLTO.so

Reviewed By: w2yehia

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




More information about the All-commits mailing list