Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ungar committed Oct 20, 2020
1 parent 1955f1d commit f573cf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Expand Up @@ -398,7 +398,7 @@ extension IncrementalCompilationState {
reportIncrementalDecision("Tried to schedule 2nd wave input \(input.file.basename) again")
}
}
if skippedCompileJobs.isEmpty {
if !sources.isEmpty && skippedCompileJobs.isEmpty {
for job in postCompileJobs {
reportIncrementalDecision("Scheduling post 2nd wave \(job.descriptionForLifecycle)")
scheduleASecondWaveJob(job)
Expand Down
10 changes: 4 additions & 6 deletions Tests/SwiftDriverTests/IncrementalCompilationTests.swift
Expand Up @@ -450,18 +450,16 @@ final class IncrementalCompilationTests: XCTestCase {
"Incremental compilation decision: Skipping Compiling other.swift",
"Starting Compiling main.swift",
"Finished Compiling main.swift",

"interface of main.swiftdeps->interface of top-level name foo->implementation of other.swiftdeps",
"Incremental compilation decision: Queuing because of dependencies discovered later: {compile: other.o <= other.swift}",
"Delaying Linking theModule pending discovering delayed dependencies",
"Scheduling 2nd wave Compiling other.swift",
"Scheduling post 2nd wave Linking theModule",

"Incremental compilation decision: Delaying Linking theModule pending discovering delayed dependencies",
"Incremental compilation decision: Scheduling 2nd wave Compiling other.swift",
"Incremental compilation decision: Scheduling post 2nd wave Linking theModule",
"Starting Compiling other.swift",
"Finished Compiling other.swift",
"Incremental compilation decision: Scheduling post 2nd wave Linking theModule",
"Starting Linking theModule",
"Finished Linking theModule",
"Incremental compilation decision: Scheduling post 2nd wave Linking theModule",
])
}
}
Expand Down

0 comments on commit f573cf9

Please sign in to comment.