Skip to content

Instantly share code, notes, and snippets.

@colemancda
Created March 19, 2022 04:11
Show Gist options
  • Select an option

  • Save colemancda/8a8cd53d5a3956c849cb510cb91d54b0 to your computer and use it in GitHub Desktop.

Select an option

Save colemancda/8a8cd53d5a3956c849cb510cb91d54b0 to your computer and use it in GitHub Desktop.
Swift 5.5.3 Soft Float patch
diff --git a/stdlib/cmake/modules/SwiftSource.cmake b/stdlib/cmake/modules/SwiftSource.cmake
index 280e18f8774..6a922b75116 100644
--- a/stdlib/cmake/modules/SwiftSource.cmake
+++ b/stdlib/cmake/modules/SwiftSource.cmake
@@ -467,6 +467,7 @@ function(_compile_swift_files
endif()
list(APPEND swift_flags ${SWIFT_EXPERIMENTAL_EXTRA_FLAGS})
+ list(APPEND swift_flags "-Xcc" "-msoft-float")
if(SWIFTFILE_OPT_FLAGS)
list(APPEND swift_flags ${SWIFTFILE_OPT_FLAGS})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment