Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmake/modules/AddPureSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ function(add_pure_swift_host_library name)
force_target_link_libraries(${name} PUBLIC
${APSHL_SWIFT_DEPENDENCIES}
)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_link_libraries(${name} PUBLIC swiftSwiftOnoneSupport)
endif()

if(APSHL_EMIT_MODULE)
set(module_triple "${SWIFT_HOST_MODULE_TRIPLE}")
Expand Down Expand Up @@ -457,6 +460,9 @@ function(add_pure_swift_host_tool name)
force_target_link_libraries(${name} PUBLIC
${APSHT_SWIFT_DEPENDENCIES}
)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
target_link_libraries(${name} PUBLIC swiftSwiftOnoneSupport)
endif()

# Make sure we can use the host libraries.
target_include_directories(${name} PUBLIC
Expand Down