Skip to content

Commit b5cdd80

Browse files
committed
build: no longer export a VFS overlay on Windows, as it shouldn't be needed after swiftlang/swift#79621
1 parent a6f0512 commit b5cdd80

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/swift/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,15 @@ target_compile_options(swiftDispatch PRIVATE
2020
"SHELL:-Xcc -fmodule-map-file=${PROJECT_SOURCE_DIR}/dispatch/module.modulemap"
2121
"SHELL:-Xcc -I${PROJECT_SOURCE_DIR}"
2222
"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()
2532
set_target_properties(swiftDispatch PROPERTIES
2633
Swift_MODULE_NAME Dispatch
2734
Swift_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/swift

0 commit comments

Comments
 (0)