Skip to content

Commit 9aa7ec1

Browse files
authored
Merge pull request swiftlang#14936 from compnerd/long-test-export
2 parents 657315a + bef59f7 commit 9aa7ec1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

unittests/runtime/LongTests/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
3838
$<TARGET_OBJECTS:swiftRuntime${SWIFT_PRIMARY_VARIANT_SUFFIX}>
3939
)
4040

41+
# The local stdlib implementation provides definitions of the swiftCore
42+
# interfaes to avoid pulling in swiftCore itself. Build the
43+
# SwiftRuntimeLongTests with swiftCore_EXPORTS to permit exporting the stdlib
44+
# interfaces.
45+
target_compile_definitions(SwiftRuntimeLongTests
46+
PRIVATE
47+
swiftCore_EXPORTS)
48+
4149
# FIXME: cross-compile for all variants.
4250
target_link_libraries(SwiftRuntimeLongTests
4351
swiftCore${SWIFT_PRIMARY_VARIANT_SUFFIX}

0 commit comments

Comments
 (0)