Skip to content

Commit 3cf63be

Browse files
authored
Merge pull request swiftlang#759 from apple/duck-build
Fixup LLBuild Package Reference in SWIFT_CI Local Build
2 parents 93a27ba + 8b4e553 commit 3cf63be

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

[email protected]

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,19 @@ if ProcessInfo.processInfo.environment["SWIFT_DRIVER_LLBUILD_FWK"] == nil {
134134
package.dependencies += [
135135
.package(url: "https://github.com/apple/swift-llbuild.git", .branch("main")),
136136
]
137+
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += [
138+
.product(name: "llbuildSwift", package: "swift-llbuild"),
139+
]
137140
} else {
138141
// In Swift CI, use a local path to llbuild to interoperate with tools
139142
// like `update-checkout`, which control the sources externally.
140143
package.dependencies += [
141-
.package(path: "../llbuild"),
144+
.package(name: "llbuild", path: "../llbuild"),
145+
]
146+
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += [
147+
.product(name: "llbuildSwift", package: "llbuild"),
142148
]
143149
}
144-
package.targets.first(where: { $0.name == "SwiftDriverExecution" })!.dependencies += [
145-
.product(name: "llbuildSwift", package: "swift-llbuild"),
146-
]
147150
}
148151

149152
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {

0 commit comments

Comments
 (0)