Skip to content

Commit 58eb5de

Browse files
committed
replace checking for two supported frontend args with checking for -cache-replay-prefix-map
1 parent bdbdd6b commit 58eb5de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftDriver/Driver/Driver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public struct Driver {
296296
return ($0.key, $0.value)
297297
}
298298
do {
299-
guard isFrontendArgSupported(.scannerPrefixMapPaths) || isFrontendArgSupported(.scannerPrefixMap) else {
299+
guard isFrontendArgSupported(.cacheReplayPrefixMap) else {
300300
return []
301301
}
302302
if let sdkMapping = scannerPrefixMapSDK,

Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ extension Driver {
10311031
}
10321032

10331033
public mutating func addCacheReplayMapping(to commandLine: inout [Job.ArgTemplate]) {
1034-
if isCachingEnabled && (isFrontendArgSupported(.scannerPrefixMapPaths) || isFrontendArgSupported(.scannerPrefixMap)) {
1034+
if isCachingEnabled && isFrontendArgSupported(.cacheReplayPrefixMap) {
10351035
for (key, value) in prefixMapping {
10361036
commandLine.appendFlag("-cache-replay-prefix-map")
10371037
if isFrontendArgSupported(.scannerPrefixMapPaths) {

0 commit comments

Comments
 (0)