Skip to content

Commit fca912e

Browse files
authored
Merge pull request #84814 from compnerd/names
Distributed: repair the build for Windows with early swift-driver
2 parents ed6ef79 + 69b4443 commit fca912e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Runtimes/Supplemental/Distributed/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ cmake_policy(GET CMP0157 Policy157Enabled)
111111
if(Policy157Enabled STREQUAL NEW)
112112
set_target_properties(swiftDistributed PROPERTIES
113113
LINKER_LANGUAGE CXX)
114+
# `CMAKE_STATIC_LIBRARY_PREFIX_Swift` will not impact the prefix for this
115+
# library because we have changed the linker language to C++. This is required
116+
# for Windows to properly reference this library.
117+
if(NOT BUILD_SHARED_LIBS)
118+
set_target_properties(swiftDistributed PROPERTIES
119+
PREFIX lib)
120+
endif()
114121
endif()
115122

116123
target_compile_definitions(swiftDistributed PRIVATE

0 commit comments

Comments
 (0)