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
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/tools/lto/CMakeLists.txt | ||
---|---|---|
32 |
|
Comment Actions
LGTM
llvm/tools/lto/CMakeLists.txt | ||
---|---|---|
24 | can we loosen the condition to apply to all versions of cmake on AIX? |
llvm/tools/lto/CMakeLists.txt | ||
---|---|---|
24 | Sure, this change shouldn't have a negative affect on older versions |
can we loosen the condition to apply to all versions of cmake on AIX?