Skip to content

Commit 72bf27c

Browse files
committed
PrebuitModuleGen: use a lightwight API to gether Swift dependencies. NFC
1 parent 74a6ce2 commit 72bf27c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/SwiftDriver/Jobs/PrebuiltModulesJob.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ extension Driver {
202202
exhaustive: Bool) throws -> ([Job], [Job]) {
203203
assert(sdkPath != nil)
204204
// Run the dependency scanner and update the dependency oracle with the results
205-
let dependencyGraph = try gatherModuleDependencies()
205+
// We only need Swift dependencies here, so we don't need to invoke gatherModuleDependencies,
206+
// which also resolves versioned clang modules.
207+
let dependencyGraph = try performDependencyScan()
206208
var jobs: [Job] = []
207209
var danglingJobs: [Job] = []
208210
var inputCount = 0

0 commit comments

Comments
 (0)