File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1863,6 +1863,12 @@ function(add_swift_target_library name)
1863
1863
set (swiftlib_swift_compile_private_frameworks_flag "-Fsystem" "${SWIFT_SDK_${sdk} _ARCH_${arch} _PATH}/System/Library/PrivateFrameworks/" )
1864
1864
endif ()
1865
1865
1866
+ if ("${sdk} " STREQUAL WINDOWS )
1867
+ if (arch STREQUAL x86_64 )
1868
+ set (swiftlib_swift_compile_flags_arch -Xcc -D_AMD64_ )
1869
+ endif ()
1870
+ endif ()
1871
+
1866
1872
# Add this library variant.
1867
1873
_add_swift_library_single (
1868
1874
${VARIANT_NAME}
@@ -1881,7 +1887,7 @@ function(add_swift_target_library name)
1881
1887
LLVM_COMPONENT_DEPENDS ${SWIFTLIB_LLVM_COMPONENT_DEPENDS}
1882
1888
FILE_DEPENDS ${SWIFTLIB_FILE_DEPENDS} ${swiftlib_module_dependency_targets}
1883
1889
C_COMPILE_FLAGS ${SWIFTLIB_C_COMPILE_FLAGS}
1884
- SWIFT_COMPILE_FLAGS ${swiftlib_swift_compile_flags_all} ${swiftlib_swift_compile_private_frameworks_flag}
1890
+ SWIFT_COMPILE_FLAGS ${swiftlib_swift_compile_flags_all} ${swiftlib_swift_compile_flags_arch} ${ swiftlib_swift_compile_private_frameworks_flag}
1885
1891
LINK_FLAGS ${swiftlib_link_flags_all}
1886
1892
PRIVATE_LINK_LIBRARIES ${swiftlib_private_link_libraries_targets}
1887
1893
INCORPORATE_OBJECT_LIBRARIES ${SWIFTLIB_INCORPORATE_OBJECT_LIBRARIES}
You can’t perform that action at this time.
0 commit comments