Revert "[AIX] Fix AIX BuildBot failure as AIX linker doesn't support version script." (#117444)

Commit
eaa0a21d21
has fixed the build problem already so the change in
llvm/llvm-project#117342 does not make sense any more. I am reverting
it.
This commit is contained in:
Xing Xue 2024-11-24 10:28:02 -05:00 committed by GitHub
parent 7498eaa9ab
commit 08bf901ed4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,13 +48,11 @@ add_clang_library(clang-cpp
${_OBJECTS}
LINK_LIBS
${_DEPS})
# AIX linker does not support version script
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
configure_file(simple_version_script.map.in simple_version_script.map)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(clang-cpp PRIVATE LINKER:--version-script,${CMAKE_CURRENT_BINARY_DIR}/simple_version_script.map)
endif()
configure_file(simple_version_script.map.in simple_version_script.map)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_options(clang-cpp PRIVATE LINKER:--version-script,${CMAKE_CURRENT_BINARY_DIR}/simple_version_script.map)
endif()
# Optimize function calls for default visibility definitions to avoid PLT and