This repository has been archived by the owner on Aug 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 674ef01 Author: Vlad Gorlov <[email protected]> Date: Fri Sep 17 15:57:09 2021 +0200 #110 M1 chip fixes. commit 0364e27 Author: Vlad Gorlov <[email protected]> Date: Fri Sep 17 14:40:32 2021 +0200 #110 M1 chip fixes. commit 2bef968 Author: Vlad Gorlov <[email protected]> Date: Fri Sep 17 09:54:37 2021 +0200 #110 M1 chip fixes.
- Loading branch information
Showing
7 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
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
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
36 changes: 36 additions & 0 deletions
36
Patches/swift/stdlib/cmake/modules/AddSwiftStdlib.cmake.diff
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,36 @@ | ||
diff --git a/stdlib/cmake/modules/AddSwiftStdlib.cmake b/stdlib/cmake/modules/AddSwiftStdlib.cmake | ||
index 38191b01a64d67222b1ffbd8617ea0a96594e7aa..fb5afce4814afd49bf2d257ecdd5e4cd299326f9 100644 | ||
--- a/stdlib/cmake/modules/AddSwiftStdlib.cmake | ||
+++ b/stdlib/cmake/modules/AddSwiftStdlib.cmake | ||
@@ -2046,6 +2046,16 @@ function(add_swift_target_library name) | ||
list(APPEND THIN_INPUT_TARGETS ${VARIANT_NAME}) | ||
endif() | ||
endif() | ||
+ | ||
+ if(sdk IN_LIST SWIFT_APPLE_PLATFORMS) | ||
+ # See: https://github.com/apple/swift/pull/38415/files | ||
+ # In the past, we relied on unsetting globally | ||
+ # CMAKE_OSX_ARCHITECTURES to ensure that CMake would | ||
+ # not add the -arch flag | ||
+ # This is no longer the case when running on Apple Silicon, | ||
+ # when CMake will enforce a default (see https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5291) | ||
+ set_property(TARGET ${VARIANT_NAME} PROPERTY OSX_ARCHITECTURES "${arch}") | ||
+ endif() | ||
endforeach() | ||
|
||
# Configure module-only targets | ||
@@ -2483,6 +2493,14 @@ function(add_swift_target_executable name) | ||
endif() | ||
|
||
if(${sdk} IN_LIST SWIFT_APPLE_PLATFORMS) | ||
+ # See: https://github.com/apple/swift/pull/38415/files | ||
+ # In the past, we relied on unsetting globally | ||
+ # CMAKE_OSX_ARCHITECTURES to ensure that CMake would | ||
+ # not add the -arch flag | ||
+ # This is no longer the case when running on Apple Silicon, | ||
+ # when CMake will enforce a default (see https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5291) | ||
+ set_property(TARGET ${VARIANT_NAME} PROPERTY OSX_ARCHITECTURES "${arch}") | ||
+ | ||
add_custom_command_target(unused_var2 | ||
COMMAND "codesign" "-f" "-s" "-" "${SWIFT_RUNTIME_OUTPUT_INTDIR}/${VARIANT_NAME}" | ||
CUSTOM_TARGET_NAME "${VARIANT_NAME}_signed" |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.0.71 | ||
1.0.72 |
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
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