HomePhabricator

[AIX] Build libLTO as MODULE rather than SHARED

Authored by daltenty on Jun 10 2021, 8:15 AM.

Description

[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

Details

Committed
daltentyJun 10 2021, 9:08 AM
Reviewer
w2yehia
Differential Revision
D103824: [AIX] Build libLTO as MODULE rather than SHARED
Parents
rG3a7a77494178: Add a page to track the status of C proposals in Clang.
Branches
Unknown
Tags
Unknown