Skip to content

Commit 0c83fce

Browse files
committed
Link swift-reflection-test* with swiftRemoteMirror
Eventually this tool will test solely with the C API, so wire up the dependencies now. This also fixes an annoying dependency issue when building some testing configurations. rdar://problem/25943881
1 parent ce8905a commit 0c83fce

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

stdlib/private/SwiftReflectionTest/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ add_swift_library(swiftSwiftReflectionTest SHARED IS_STDLIB
66
SWIFT_MODULE_DEPENDS Darwin
77
SWIFT_COMPILE_FLAGS ${swift_reflection_test_compile_flags}
88
INSTALL_IN_COMPONENT stdlib-experimental)
9+
10+
foreach(SDK ${SWIFT_SDKS})
11+
foreach(ARCH ${SWIFT_SDK_${SDK}_ARCHITECTURES})
12+
set(VARIANT_SUFFIX "-${SWIFT_SDK_${SDK}_LIB_SUBDIR}-${ARCH}")
13+
add_dependencies(
14+
"swiftSwiftReflectionTest${VARIANT_SUFFIX}"
15+
"swift-reflection-test${VARIANT_SUFFIX}")
16+
endforeach()
17+
endforeach()

tools/swift-reflection-test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ add_swift_target_executable(swift-reflection-test BUILD_WITH_STDLIB
22
swift-reflection-test.cpp
33
overrides.cpp
44
LINK_FAT_LIBRARIES
5-
swiftReflection)
5+
swiftReflection
6+
swiftRemoteMirror)
67

0 commit comments

Comments
 (0)