Skip to content

Commit 4163263

Browse files
Merge pull request #1544 from cachemeifyoucan/eng/PR-main-module-scanner-args
[Caching] Fix scanner args were dropped when resolveMainModuleDependencies were called multiple times
2 parents 977c2ad + 72e8399 commit 4163263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftDriver/ExplicitModuleBuilds/ExplicitDependencyBuildPlanner.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public typealias ExternalTargetModuleDetailsMap = [ModuleDependencyId: ExternalT
405405
let mainModuleId: ModuleDependencyId = .swift(dependencyGraph.mainModuleName)
406406
let mainModuleDetails = try dependencyGraph.swiftModuleDetails(of: mainModuleId)
407407
if let additionalArgs = mainModuleDetails.commandLine {
408-
additionalArgs.forEach { commandLine.appendFlag($0) }
408+
additionalArgs.forEach { commandLineAdditions.appendFlag($0) }
409409
}
410410
commandLineAdditions.appendFlags("-disable-implicit-swift-modules",
411411
"-Xcc", "-fno-implicit-modules",

0 commit comments

Comments
 (0)