Skip to content

Commit a617b14

Browse files
authored
Merge pull request #16816 from compnerd/nodelete
2 parents d40c381 + 9e7f0e1 commit a617b14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ macro(swift_common_standalone_build_config_llvm product is_cross_compiling)
9090
# selectively add it to the per-target link flags; this is currently done
9191
# in add_swift_library within AddSwift.cmake.
9292
string(REGEX REPLACE "-Wl,-z,defs" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
93+
string(REGEX REPLACE "-Wl,-z,nodelete" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
9394

9495
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
9596
string(REGEX REPLACE "([0-9]+)\\.[0-9]+(\\.[0-9]+)?" "\\1" PACKAGE_VERSION_MAJOR

0 commit comments

Comments
 (0)