Skip to content

Commit

Permalink
Merge pull request swiftlang#480 from dcci/coalesce
Browse files Browse the repository at this point in the history
Coalesce protocol conformance sections on FreeBSD.
  • Loading branch information
gribozavr committed Dec 13, 2015
2 parents 3d7ed4a + 10ee8ba commit 67da5b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1099,10 +1099,11 @@ function(_add_swift_library_single target name)
set(PLIST_INFO_BUILD_VERSION)
endif()

# On Linux add the linker script that coalesces protocol conformance
# sections. This wouldn't be necessary if the link was done by the swift
# binary: rdar://problem/19007002
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
# On Linux and FreeBSD add the linker script that coalesces protocol
# conformance sections. This wouldn't be necessary if the link was done by
# the swift binary: rdar://problem/19007002
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux" OR
"${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
list(APPEND link_flags
"-Xlinker" "-T"
"-Xlinker" "${SWIFTLIB_DIR}/${SWIFTLIB_SINGLE_SUBDIR}/swift.ld")
Expand Down

0 comments on commit 67da5b6

Please sign in to comment.