File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -949,10 +949,17 @@ function(_add_swift_library_single target name)
949949 set (prefixed_link_libraries)
950950 foreach (dep ${SWIFTLIB_SINGLE_LINK_LIBRARIES} )
951951 if ("${dep} " MATCHES "^clang" )
952- set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /lib${dep} .a" )
953- endif ()
954- if ("${dep} " STREQUAL "cmark" )
955- set (dep "${CMARK_LIBRARY_DIR} /lib${dep} .a" )
952+ if ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "WINDOWS" )
953+ set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /${dep} .lib" )
954+ else ()
955+ set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /lib${dep} .a" )
956+ endif ()
957+ elseif ("${dep} " STREQUAL "cmark" )
958+ if ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "WINDOWS" )
959+ set (dep "${CMARK_LIBRARY_DIR} /${dep} .lib" )
960+ else ()
961+ set (dep "${CMARK_LIBRARY_DIR} /lib${dep} .a" )
962+ endif ()
956963 endif ()
957964 list (APPEND prefixed_link_libraries "${dep} " )
958965 endforeach ()
You can’t perform that action at this time.
0 commit comments