-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4f09db
commit 66ad3fe
Showing
7 changed files
with
14 additions
and
1,702 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
amazonlinux-2023/patches/swift-5.10/nostart-stop-gc-5.10.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.