Skip to content

Commit 1ae8ef0

Browse files
authored
Merge pull request #84914 from rintaro/astgen-ononesupport-rdar162631685
[ASTGen/CMake] Link swiftOnoneSupport in "Debug" build
2 parents a5ef769 + 65505d1 commit 1ae8ef0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/modules/AddPureSwift.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ function(add_pure_swift_host_library name)
292292
force_target_link_libraries(${name} PUBLIC
293293
${APSHL_SWIFT_DEPENDENCIES}
294294
)
295+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
296+
target_link_libraries(${name} PUBLIC swiftSwiftOnoneSupport)
297+
endif()
295298

296299
if(APSHL_EMIT_MODULE)
297300
set(module_triple "${SWIFT_HOST_MODULE_TRIPLE}")
@@ -457,6 +460,9 @@ function(add_pure_swift_host_tool name)
457460
force_target_link_libraries(${name} PUBLIC
458461
${APSHT_SWIFT_DEPENDENCIES}
459462
)
463+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
464+
target_link_libraries(${name} PUBLIC swiftSwiftOnoneSupport)
465+
endif()
460466

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

0 commit comments

Comments
 (0)