Skip to content

Commit decb484

Browse files
committed
build: repair Windows build
`-ivfsoverlay` is no longer passed through to the driver with `clang-cl`. Explicitly mark it as a clang option to ensure that the option is handled properly. This repairs the build on Windows.
1 parent a912a12 commit decb484

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/SwiftWindowsSupport.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function(swift_windows_generate_sdk_vfs_overlay flags)
7171
@ONLY)
7272

7373
set(${flags}
74-
-ivfsoverlay;"${CMAKE_BINARY_DIR}/windows-sdk-vfs-overlay.yaml"
74+
-Xclang;-ivfsoverlay;-Xclang;"${CMAKE_BINARY_DIR}/windows-sdk-vfs-overlay.yaml"
7575
PARENT_SCOPE)
7676
endfunction()
7777

0 commit comments

Comments
 (0)