Skip to content

Commit

Permalink
clean up test patches
Browse files Browse the repository at this point in the history
  • Loading branch information
futurejones committed Mar 5, 2024
1 parent b4f09db commit 66ad3fe
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 1,702 deletions.
14 changes: 14 additions & 0 deletions amazonlinux-2023/patches/swift-5.10/nostart-stop-gc-5.10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/cmake/modules/AddSwift.cmake b/cmake/modules/AddSwift.cmake
index f4a2cd3017f..b6268005f17 100644
--- a/cmake/modules/AddSwift.cmake
+++ b/cmake/modules/AddSwift.cmake
@@ -612,6 +612,9 @@ function(_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping)
endif()
endif()
endif()
+ if(SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD|FREEBSD" AND SWIFT_USE_LINKER STREQUAL "lld")
+ target_link_options(${target} PRIVATE "SHELL:-Xlinker -z -Xlinker nostart-stop-gc")
+ endif()
endif()

set_property(TARGET ${target} PROPERTY BUILD_WITH_INSTALL_RPATH YES)
Loading

0 comments on commit 66ad3fe

Please sign in to comment.