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 @@ -951,10 +951,17 @@ function(_add_swift_library_single target name)
951951 set (prefixed_link_libraries)
952952 foreach (dep ${SWIFTLIB_SINGLE_LINK_LIBRARIES} )
953953 if ("${dep} " MATCHES "^clang" )
954- set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /lib${dep} .a" )
955- endif ()
956- if ("${dep} " STREQUAL "cmark" )
957- set (dep "${CMARK_LIBRARY_DIR} /lib${dep} .a" )
954+ if ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "WINDOWS" )
955+ set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /${dep} .lib" )
956+ else ()
957+ set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /lib${dep} .a" )
958+ endif ()
959+ elseif ("${dep} " STREQUAL "cmark" )
960+ if ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "WINDOWS" )
961+ set (dep "${CMARK_LIBRARY_DIR} /${dep} .lib" )
962+ else ()
963+ set (dep "${CMARK_LIBRARY_DIR} /lib${dep} .a" )
964+ endif ()
958965 endif ()
959966 list (APPEND prefixed_link_libraries "${dep} " )
960967 endforeach ()
You can’t perform that action at this time.
0 commit comments