Skip to content

Commit 75713b8

Browse files
authored
Merge pull request #29805 from compnerd/vs2017-unittests
unittests: adjust for VS2017 15.8+
2 parents 355148d + 3dfec1b commit 75713b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unittests/runtime/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
8585
PRIVATE
8686
swiftCore_EXPORTS)
8787

88+
if(SWIFT_HOST_VARIANT STREQUAL WINDOWS)
89+
target_compile_definitions(SwiftRuntimeTests PRIVATE
90+
_ENABLE_EXTENDED_ALIGNED_STORAGE)
91+
endif()
92+
8893
# FIXME: cross-compile for all variants.
8994
target_link_libraries(SwiftRuntimeTests
9095
PRIVATE

0 commit comments

Comments
 (0)