File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -1274,23 +1274,6 @@ function(_add_swift_library_single target name)
1274
1274
"${swift_module_dependency_target} "
1275
1275
${LLVM_COMMON_DEPENDS} )
1276
1276
1277
- # HACK: On some systems or build directory setups, CMake will not find static
1278
- # archives of Clang libraries in the Clang build directory, and it will pass
1279
- # them as '-lclangFoo'. Some other logic in CMake would reorder libraries
1280
- # specified with this syntax, which breaks linking.
1281
- set (prefixed_link_libraries )
1282
- foreach (dep ${SWIFTLIB_SINGLE_LINK_LIBRARIES} )
1283
- if ("${dep} " MATCHES "^clang" )
1284
- if ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "WINDOWS" )
1285
- set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /${dep} .lib" )
1286
- else ()
1287
- set (dep "${LLVM_LIBRARY_OUTPUT_INTDIR} /lib${dep} .a" )
1288
- endif ()
1289
- endif ()
1290
- list (APPEND prefixed_link_libraries "${dep} " )
1291
- endforeach ()
1292
- set (SWIFTLIB_SINGLE_LINK_LIBRARIES "${prefixed_link_libraries} " )
1293
-
1294
1277
if ("${libkind} " STREQUAL "SHARED" )
1295
1278
target_link_libraries ("${target} " PRIVATE ${SWIFTLIB_SINGLE_LINK_LIBRARIES} )
1296
1279
elseif ("${libkind} " STREQUAL "OBJECT" )
You can’t perform that action at this time.
0 commit comments