File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,15 @@ target_compile_options(swiftDispatch PRIVATE
20
20
"SHELL:-Xcc -fmodule-map-file=${PROJECT_SOURCE_DIR} /dispatch/module.modulemap"
21
21
"SHELL:-Xcc -I${PROJECT_SOURCE_DIR} "
22
22
"SHELL:-Xcc -I${PROJECT_SOURCE_DIR} /src/swift/shims" )
23
- target_compile_options (swiftDispatch PUBLIC
24
- "SHELL:-vfsoverlay ${CMAKE_BINARY_DIR} /dispatch-vfs-overlay.yaml" )
23
+ if (CMAKE_SYSTEM_NAME STREQUAL "Windows" )
24
+ if (NOT BUILT_FIRST_SDK )
25
+ target_compile_options (swiftDispatch PRIVATE
26
+ "SHELL:-vfsoverlay ${CMAKE_BINARY_DIR} /dispatch-vfs-overlay.yaml" )
27
+ endif ()
28
+ else ()
29
+ target_compile_options (swiftDispatch PUBLIC
30
+ "SHELL:-vfsoverlay ${CMAKE_BINARY_DIR} /dispatch-vfs-overlay.yaml" )
31
+ endif ()
25
32
set_target_properties (swiftDispatch PROPERTIES
26
33
Swift_MODULE_NAME Dispatch
27
34
Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /swift
You can’t perform that action at this time.
0 commit comments