-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AIX] Fix AIX BuildBot failure as AIX linker doesn't support version script. #117342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-clang Author: Daniel Chen (DanielCChen) ChangesAIX BuildBot failed due to #116556 as AIX linker does not support version script. This PR is on behalf of [email protected] Full diff: https://github.com/llvm/llvm-project/pull/117342.diff 1 Files Affected:
diff --git a/clang/tools/clang-shlib/CMakeLists.txt b/clang/tools/clang-shlib/CMakeLists.txt
index 31484ec49c7739..2d97347ea7f828 100644
--- a/clang/tools/clang-shlib/CMakeLists.txt
+++ b/clang/tools/clang-shlib/CMakeLists.txt
@@ -48,11 +48,13 @@ 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)
-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)
+ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ target_link_options(clang-cpp PRIVATE LINKER:--version-script,${CMAKE_CURRENT_BINARY_DIR}/simple_version_script.map)
+ endif()
endif()
# Optimize function calls for default visibility definitions to avoid PLT and
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
|
||
configure_file(simple_version_script.map.in simple_version_script.map) | ||
|
||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implies NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX"
, hence the target_link_options
is already unreachable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, @aaronpuchert! With commit eaa0a21 the AIX build problem is fixed already so the change in #117342 does not make sense any more. I created PR Revert "[AIX] Fix AIX BuildBot failure as AIX linker doesn't support version script.".
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/1515 Here is the relevant piece of the build log for the reference
|
AIX BuildBot failed due to #116556 as AIX linker does not support version script.
This PR is to fix the failure
This PR is on behalf of [email protected]