Skip to content

Commit dbcef71

Browse files
committed
Remove triple from SwiftBuild system output path
The triple name in the SwiftBuild build system is redundant. Remove the triple from the output path.
1 parent e1f3ce2 commit dbcef71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/SPMBuildCore/Triple+Extensions.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ extension Triple {
3232
// can be used to build for any Apple platform and it has its own
3333
// conventions for build subpaths based on platforms.
3434
return "apple"
35-
case .swiftbuild, .native:
35+
case .swiftbuild:
36+
return ""
37+
case .native:
3638
return self.platformBuildPathComponent
3739
}
3840
}

Sources/_InternalTestSupport/BuildSystemProvider+Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extension BuildSystemProvider.Kind {
6666
case .native:
6767
return scratchPath + [tripleString, "\(config)".lowercased()]
6868
case .swiftbuild:
69-
return scratchPath + [tripleString, "Products", "\(config)".capitalized + suffix]
69+
return scratchPath + ["Products", "\(config)".capitalized + suffix]
7070
case .xcode:
7171
return scratchPath + ["apple", "Products", "\(config)".capitalized + suffix]
7272
}

0 commit comments

Comments
 (0)