Skip to content

Commit 52ddabe

Browse files
authored
Merge pull request #23196 from apple/self-reflection-is-difficult
2 parents da45b8d + 2c5fe7d commit 52ddabe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

stdlib/tools/swift-reflection-test/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ add_swift_target_executable(swift-reflection-test BUILD_WITH_STDLIB
44
LINK_FAT_LIBRARIES
55
swiftRemoteMirror
66
swiftReflection)
7-
7+
# NOTE(compnerd) since _WINDLL has no impact on non-Windows targets,
8+
# we just spam it on all the targets for simplicity due to the build
9+
# structure of swift. This will make the global variable imported,
10+
# which we need.
11+
set_source_files_properties(swift-reflection-test.c
12+
PROPERTIES
13+
COMPILE_FLAGS -D_WINDLL)

0 commit comments

Comments
 (0)