mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-15 22:16:30 +00:00
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:
parent
7498eaa9ab
commit
08bf901ed4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user