You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- remove the platform specifics from computeLibraryArgs, we now just
use LIBRARY_PREFIX and remove any suffix for searchPathFlagsForLD,
and moved this into the LinkerSpec.LibrarySpecifier extension, this
allows for proper searching of libraries, and linking of dynamic
libraries on Windows.
Copy file name to clipboardExpand all lines: Sources/SWBTestSupport/TestWorkspaces.swift
+6-14Lines changed: 6 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1028,23 +1028,15 @@ package final class TestStandardTarget: TestInternalTarget, Sendable {
1028
1028
return"\(name).app"
1029
1029
case.commandLineTool,
1030
1030
.hostBuildTool,
1031
-
.swiftpmTestRunner:
1032
-
return"\(name)"
1031
+
.swiftpmTestRunner,
1032
+
.staticLibrary,
1033
+
.objectFile,
1034
+
.objectLibrary,
1035
+
.dynamicLibrary:
1036
+
return"$(EXECUTABLE_NAME)"
1033
1037
case.framework,
1034
1038
.staticFramework:
1035
1039
return"\(name).framework"
1036
-
case.staticLibrary:
1037
-
return"lib\(name).a"
1038
-
case.objectFile:
1039
-
return"\(name).o"
1040
-
case.objectLibrary:
1041
-
return"\(name).objlib"
1042
-
case.dynamicLibrary:
1043
-
// FIXME: This should be based on the target platform, not the host. See also: <rdar://problem/29410050> Swift Build doesn't support product references with non-constant basenames
0 commit comments