Skip to content

Commit 57571cc

Browse files
[Caching] Fix a fallout from block list remap
Don't remap block list path from dependency scanning invocation.
1 parent b0027b6 commit 57571cc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ extension Driver {
353353
if isFrontendArgSupported(.blockListFile) {
354354
try findBlocklists().forEach {
355355
commandLine.appendFlag(.blockListFile)
356-
try addPathArgument(VirtualPath.absolute($0), to: &commandLine)
356+
try addPathArgument(VirtualPath.absolute($0), to: &commandLine, remap: jobNeedPathRemap)
357357
}
358358
}
359359

Tests/SwiftDriverTests/CachingBuildTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,9 @@ final class CachingBuildTests: XCTestCase {
940940
$0.starts(with: try testInputsPath.description)
941941
})
942942
}
943+
944+
try driver.run(jobs: jobs)
945+
XCTAssertFalse(driver.diagnosticEngine.hasErrors)
943946
}
944947
}
945948

0 commit comments

Comments
 (0)