Skip to content

Commit 4fc019b

Browse files
Merge pull request #1870 from cachemeifyoucan/eng/PR-block-list-remap-fallout
2 parents b0027b6 + 2ce26d9 commit 4fc019b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
---
2+
key: value
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
---
2+
key: value

Tests/SwiftDriverTests/CachingBuildTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,7 @@ final class CachingBuildTests: XCTestCase {
901901
var driver = try Driver(args: ["swiftc",
902902
"-I", cHeadersPath.nativePathString(escaped: true),
903903
"-I", swiftModuleInterfacesPath.nativePathString(escaped: true),
904-
"/tmp/Foo.o", "-g",
905-
"-explicit-module-build",
904+
"-g", "-explicit-module-build",
906905
"-cache-compile-job", "-cas-path", casPath.nativePathString(escaped: true),
907906
"-working-directory", path.nativePathString(escaped: true),
908907
"-disable-clang-target", "-scanner-prefix-map-sdk", "/^sdk",
@@ -940,6 +939,9 @@ final class CachingBuildTests: XCTestCase {
940939
$0.starts(with: try testInputsPath.description)
941940
})
942941
}
942+
943+
try driver.run(jobs: jobs)
944+
XCTAssertFalse(driver.diagnosticEngine.hasErrors)
943945
}
944946
}
945947

0 commit comments

Comments
 (0)