Skip to content

Commit d256285

Browse files
committed
[CMake] Change tests BlocksRuntimeStub to use VARIANT_SUFFIX
Change the CMake adding the BlocksRuntimeStub libraries for tests to use VARIANT_SUFFIX. This makes it consistent with surrounding code and unbreaks some downstream testing infrastructure. rdar://problem/49541143
1 parent 93632f0 commit d256285

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ __declspec(dllexport)
205205
#endif
206206
_Block_release(void) { }\n")
207207
_add_swift_library_single(
208-
BlocksRuntimeStub-${SDK}-${ARCH}
208+
BlocksRuntimeStub${VARIANT_SUFFIX}
209209
BlocksRuntimeStub
210210
SHARED
211211
DONT_EMBED_BITCODE
@@ -214,12 +214,12 @@ _Block_release(void) { }\n")
214214
SDK ${SDK}
215215
INSTALL_IN_COMPONENT dev
216216
${test_bin_dir}/BlocksRuntime.c)
217-
set_target_properties(BlocksRuntimeStub-${SDK}-${ARCH} PROPERTIES
217+
set_target_properties(BlocksRuntimeStub${VARIANT_SUFFIX} PROPERTIES
218218
ARCHIVE_OUTPUT_DIRECTORY ${test_bin_dir}
219219
LIBRARY_OUTPUT_DIRECTORY ${test_bin_dir}
220220
RUNTIME_OUTPUT_DIRECTORY ${test_bin_dir}
221221
OUTPUT_NAME BlocksRuntime)
222-
list(APPEND test_dependencies BlocksRuntimeStub-${SDK}-${ARCH})
222+
list(APPEND test_dependencies BlocksRuntimeStub${VARIANT_SUFFIX})
223223

224224
list(APPEND test_dependencies
225225
"swift-test-stdlib-${SWIFT_SDK_${SDK}_LIB_SUBDIR}")

0 commit comments

Comments
 (0)