Skip to content

Commit 5a12714

Browse files
committed
build: we only support the shared CRT on Win32
Adjust the CFLAGS to indicate that the shared CRT is used since we do not support the static CRT as that makes the DLL unusable with other executables as the shared and static CRT cannot be mixed in a single address space. The flag itself does not collide on other targets (at least currently). If necessary, that can be made target dependent.
1 parent 011e7ea commit 5a12714

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ add_swift_library(Foundation
280280
${deployment_target}
281281
${deployment_enable_libdispatch}
282282
-F${install_dir}/System/Library/Frameworks
283+
-D_DLL
283284
LINK_FLAGS
284285
-L${install_dir}/usr/lib
285286
-lCoreFoundation

0 commit comments

Comments
 (0)