From decb484facdbabd3a13793b3b4cbabcfd9cb1569 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 23 Apr 2018 11:20:48 -0700 Subject: [PATCH] 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. --- cmake/modules/SwiftWindowsSupport.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/SwiftWindowsSupport.cmake b/cmake/modules/SwiftWindowsSupport.cmake index f25f57d8859..6bd0fb5042b 100644 --- a/cmake/modules/SwiftWindowsSupport.cmake +++ b/cmake/modules/SwiftWindowsSupport.cmake @@ -71,7 +71,7 @@ function(swift_windows_generate_sdk_vfs_overlay flags) @ONLY) set(${flags} - -ivfsoverlay;"${CMAKE_BINARY_DIR}/windows-sdk-vfs-overlay.yaml" + -Xclang;-ivfsoverlay;-Xclang;"${CMAKE_BINARY_DIR}/windows-sdk-vfs-overlay.yaml" PARENT_SCOPE) endfunction()