@@ -269,6 +269,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
269
269
let cHeadersPath : AbsolutePath =
270
270
testInputsPath. appending ( component: " ExplicitModuleBuilds " )
271
271
. appending ( component: " CHeaders " )
272
+ let bridgingHeaderpath : AbsolutePath =
273
+ cHeadersPath. appending ( component: " Bridging.h " )
272
274
let swiftModuleInterfacesPath : AbsolutePath =
273
275
testInputsPath. appending ( component: " ExplicitModuleBuilds " )
274
276
. appending ( component: " Swift " )
@@ -278,6 +280,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
278
280
" -I " , cHeadersPath. nativePathString ( escaped: true ) ,
279
281
" -I " , swiftModuleInterfacesPath. nativePathString ( escaped: true ) ,
280
282
" -explicit-module-build " ,
283
+ " -import-objc-header " , bridgingHeaderpath. nativePathString ( escaped: true ) ,
281
284
main. nativePathString ( escaped: true ) ] + sdkArgumentsForTesting)
282
285
283
286
let jobs = try driver. planBuild ( )
@@ -338,6 +341,10 @@ final class ExplicitModuleBuildTests: XCTestCase {
338
341
try checkExplicitModuleBuildJob ( job: job, moduleId: . clang( " G " ) ,
339
342
dependencyGraph: dependencyGraph)
340
343
}
344
+ else if relativeOutputPathFileName. starts ( with: " F- " ) {
345
+ try checkExplicitModuleBuildJob ( job: job, moduleId: . clang( " F " ) ,
346
+ dependencyGraph: dependencyGraph)
347
+ }
341
348
else if relativeOutputPathFileName. starts ( with: " SwiftShims- " ) {
342
349
try checkExplicitModuleBuildJob ( job: job, moduleId: . clang( " SwiftShims " ) ,
343
350
dependencyGraph: dependencyGraph)
@@ -357,7 +364,8 @@ final class ExplicitModuleBuildTests: XCTestCase {
357
364
case . temporary( _) :
358
365
let baseName = " testExplicitModuleBuildJobs "
359
366
XCTAssertTrue ( matchTemporary ( outputFilePath, basename: baseName, fileExtension: " o " ) ||
360
- matchTemporary ( outputFilePath, basename: baseName, fileExtension: " autolink " ) )
367
+ matchTemporary ( outputFilePath, basename: baseName, fileExtension: " autolink " ) ||
368
+ matchTemporary ( outputFilePath, basename: " Bridging- " , fileExtension: " pch " ) )
361
369
default :
362
370
XCTFail ( " Unexpected module dependency build job output: \( outputFilePath) " )
363
371
}
0 commit comments