Skip to content

Commit

Permalink
Revert "[AIX] Fix AIX BuildBot failure as AIX linker doesn't support …
Browse files Browse the repository at this point in the history
…version script." (#117444)

Commit
eaa0a21
has fixed the build problem already so the change in
#117342 does not make sense any more. I am reverting
it.
  • Loading branch information
xingxue-ibm authored Nov 24, 2024
1 parent 7498eaa commit 08bf901
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions clang/tools/clang-shlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08bf901

Please sign in to comment.