Skip to content

Commit f10ec9d

Browse files
committed
[CAS][SwiftCompiler] We don't need to disable caching if there is a bridging header that is not precompiled
With later improvements we actually force precompiling the bridging header from the driver, when caching is enabled.
1 parent 3b78898 commit f10ec9d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/SWBCore/SpecImplementations/Tools/SwiftCompiler.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,10 +1428,6 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
14281428
delegate.warning("swift compiler caching requires explicit module build (SWIFT_ENABLE_EXPLICIT_MODULES=YES)")
14291429
return false
14301430
}
1431-
if disabledPCHCompile, !cbc.scope.evaluate(BuiltinMacros.SWIFT_OBJC_BRIDGING_HEADER).isEmpty {
1432-
delegate.warning("swift compiler caching requires precompile bridging header if caching is enabled (SWIFT_PRECOMPILE_BRIDGING_HEADER=YES)")
1433-
return false
1434-
}
14351431
if let specInfo = await (discoveredCommandLineToolSpecInfo(cbc.producer, cbc.scope, delegate) as? DiscoveredSwiftCompilerToolSpecInfo) {
14361432
if !specInfo.hasFeature(DiscoveredSwiftCompilerToolSpecInfo.FeatureFlag.compilationCaching.rawValue) {
14371433
delegate.warning("swift compiler caching is not supported by toolchain")

0 commit comments

Comments
 (0)