Skip to content

Commit 972a86b

Browse files
authored
Merge pull request swiftlang#22815 from compnerd/a-dll-is-a-dll
CMake: use `_WINDLL` rather than `_USRDLL`
2 parents cc90915 + 8062230 commit 972a86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,7 @@ function(add_swift_target_library name)
17741774
# building both simultaneously. Effectively, only shared builds are
17751775
# supported on windows currently.
17761776
if(SWIFTLIB_SHARED)
1777-
list(APPEND swiftlib_swift_compile_flags_all -D_USRDLL)
1777+
list(APPEND swiftlib_swift_compile_flags_all -D_WINDLL)
17781778
if(SWIFTLIB_IS_STDLIB_CORE)
17791779
list(APPEND swiftlib_swift_compile_flags_all -DswiftCore_EXPORTS)
17801780
endif()

0 commit comments

Comments
 (0)