Skip to content

Commit 08bf901

Browse files
authored
Revert "[AIX] Fix AIX BuildBot failure as AIX linker doesn't support 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.
1 parent 7498eaa commit 08bf901

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

clang/tools/clang-shlib/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ add_clang_library(clang-cpp
4848
${_OBJECTS}
4949
LINK_LIBS
5050
${_DEPS})
51-
# AIX linker does not support version script
52-
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
53-
configure_file(simple_version_script.map.in simple_version_script.map)
5451

55-
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
56-
target_link_options(clang-cpp PRIVATE LINKER:--version-script,${CMAKE_CURRENT_BINARY_DIR}/simple_version_script.map)
57-
endif()
52+
configure_file(simple_version_script.map.in simple_version_script.map)
53+
54+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
55+
target_link_options(clang-cpp PRIVATE LINKER:--version-script,${CMAKE_CURRENT_BINARY_DIR}/simple_version_script.map)
5856
endif()
5957

6058
# Optimize function calls for default visibility definitions to avoid PLT and

0 commit comments

Comments
 (0)