Skip to content

Commit 8f01620

Browse files
committed
Revert "Build workaround: only consider shims to be protected in Swift code on Darwin."
This reverts commit 3e20817. Now that we are using gold, this should work. The work around is only needed for BFD linkers.
1 parent 4558b50 commit 8f01620

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/modules/SwiftSource.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ function(handle_swift_sources
7979
# <rdar://problem/15972329>
8080
list(APPEND swift_compile_flags "-force-single-frontend-invocation")
8181

82-
# FIXME: Apply this on all platforms where the linker supports it.
83-
if(SWIFTSOURCES_IS_STDLIB_CORE AND "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
82+
if(SWIFTSOURCES_IS_STDLIB_CORE)
8483
list(APPEND swift_compile_flags "-Xcc" "-D__SWIFT_CURRENT_DYLIB=swiftCore")
8584
endif()
8685

0 commit comments

Comments
 (0)