Skip to content

Commit eaa0a21

Browse files
committed
Limit symbol versioning in clang-cpp to Linux for now
There was a build bot failure on AIX after #116556, and who knows what other systems don't support symbol versioning. So let's limit this to Linux for now. We can always add more cases later.
1 parent 42dd114 commit eaa0a21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/tools/clang-shlib/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ add_clang_library(clang-cpp
5151

5252
configure_file(simple_version_script.map.in simple_version_script.map)
5353

54-
if (NOT APPLE AND NOT MSVC AND NOT MINGW AND NOT LLVM_LINKER_IS_SOLARISLD)
55-
# Solaris ld does not accept global: *; so there is no way to version *all* global symbols
54+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
5655
target_link_options(clang-cpp PRIVATE LINKER:--version-script,${CMAKE_CURRENT_BINARY_DIR}/simple_version_script.map)
5756
endif()
5857

0 commit comments

Comments
 (0)