File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -818,16 +818,16 @@ function(_add_swift_library_single target name)
818
818
endif ()
819
819
820
820
if ("${SWIFTLIB_SINGLE_SDK} " STREQUAL "WINDOWS" )
821
- swift_windows_include_for_arch (${SWIFTLIB_SINGLE_ARCHITECTURE} SWIFTLIB_INCLUDE )
822
821
if (NOT "${CMAKE_C_COMPILER_ID} " STREQUAL "MSVC" )
823
822
swift_windows_generate_sdk_vfs_overlay (SWIFTLIB_SINGLE_VFS_OVERLAY_FLAGS )
824
823
foreach (flag ${SWIFTLIB_SINGLE_VFS_OVERLAY_FLAGS} )
825
824
list (APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xcc;${flag} )
826
825
list (APPEND SWIFTLIB_SINGLE_C_COMPILE_FLAGS ${flag} )
827
826
endforeach ()
828
827
endif ()
828
+ swift_windows_include_for_arch (${SWIFTLIB_SINGLE_ARCHITECTURE} SWIFTLIB_INCLUDE )
829
829
foreach (directory ${SWIFTLIB_INCLUDE} )
830
- list (APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-I ${directory} )
830
+ list (APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xcc;-isystem;-Xcc; ${directory} )
831
831
endforeach ()
832
832
if ("${SWIFTLIB_SINGLE_ARCHITECTURE} " MATCHES arm )
833
833
list (APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xcc;-D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE )
You can’t perform that action at this time.
0 commit comments