From 2c5fe7dbd887453e51d297110f183c24ac513016 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Fri, 8 Mar 2019 21:33:59 -0800 Subject: [PATCH] build: try to fix swift-reflection-test harder Ensure that the symbol is marked for DLL import rather than just as a local. --- stdlib/tools/swift-reflection-test/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stdlib/tools/swift-reflection-test/CMakeLists.txt b/stdlib/tools/swift-reflection-test/CMakeLists.txt index d541723464e9f..41958ac974a51 100644 --- a/stdlib/tools/swift-reflection-test/CMakeLists.txt +++ b/stdlib/tools/swift-reflection-test/CMakeLists.txt @@ -4,4 +4,10 @@ add_swift_target_executable(swift-reflection-test BUILD_WITH_STDLIB LINK_FAT_LIBRARIES swiftRemoteMirror swiftReflection) - +# NOTE(compnerd) since _WINDLL has no impact on non-Windows targets, +# we just spam it on all the targets for simplicity due to the build +# structure of swift. This will make the global variable imported, +# which we need. +set_source_files_properties(swift-reflection-test.c + PROPERTIES + COMPILE_FLAGS -D_WINDLL)