Skip to content

Commit 8b71b01

Browse files
authored
Merge pull request #430 from 3405691582/PlatformBuildPathComponent
Use new way when building paths based on triple.
2 parents d29d125 + ee61890 commit 8b71b01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SKSwiftPMWorkspace/SwiftPMWorkspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public final class SwiftPMWorkspace {
117117
}
118118

119119
self.buildParameters = BuildParameters(
120-
dataPath: location.workingDirectory.appending(component: triple.tripleString),
120+
dataPath: location.workingDirectory.appending(component: triple.platformBuildPathComponent()),
121121
configuration: buildConfiguration,
122122
toolchain: toolchain,
123123
flags: buildSetup.flags

Tests/SKSwiftPMWorkspaceTests/SwiftPMWorkspaceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,5 +605,5 @@ private func buildPath(
605605
triple: Triple) -> AbsolutePath
606606
{
607607
let buildPath = config.path ?? root.appending(component: ".build")
608-
return buildPath.appending(components: triple.tripleString, "\(config.configuration)")
608+
return buildPath.appending(components: triple.platformBuildPathComponent(), "\(config.configuration)")
609609
}

0 commit comments

Comments
 (0)