@@ -326,10 +326,11 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests {
326
326
#expect( fileDict [ " dependencies " ] ? . stringValue == " \( SRCROOT) /build/aProject.build/Debug/AppTarget.build/Objects-normal/x86_64/ \( filename) .d " )
327
327
#expect( fileDict [ " swift-dependencies " ] ? . stringValue == " \( SRCROOT) /build/aProject.build/Debug/AppTarget.build/Objects-normal/x86_64/ \( filename) .swiftdeps " )
328
328
#expect( fileDict [ " swiftmodule " ] ? . stringValue == " \( SRCROOT) /build/aProject.build/Debug/AppTarget.build/Objects-normal/x86_64/ \( filename) ~partial.swiftmodule " )
329
+ #expect( fileDict [ " llvm-bc " ] ? . stringValue == " \( SRCROOT) /build/aProject.build/Debug/AppTarget.build/Objects-normal/x86_64/ \( filename) .bc " )
329
330
#expect( fileDict [ " const-values " ] ? . stringValue == " \( SRCROOT) /build/aProject.build/Debug/AppTarget.build/Objects-normal/x86_64/ \( filename) .swiftconstvalues " )
330
331
if swiftFeatures. has ( . indexUnitOutputPathWithoutWarning) {
331
332
#expect( fileDict [ " index-unit-output-path " ] ? . stringValue == " /aProject.build/Debug/AppTarget.build/Objects-normal/x86_64/ \( filename) .o " )
332
- #expect( fileDict. count == 7 )
333
+ #expect( fileDict. count == 8 )
333
334
} else {
334
335
#expect( fileDict. count == 6 )
335
336
}
@@ -1265,9 +1266,11 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests {
1265
1266
} else {
1266
1267
compileTask. checkCommandLineContains ( [ " -lto=llvm-thin " ] )
1267
1268
}
1269
+ compileTask. checkOutputs ( contain: [ . namePattern( . suffix( " Bar.bc " ) ) ] )
1268
1270
}
1269
1271
results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { archiverTask in
1270
1272
results. checkTaskFollows ( archiverTask, . matchTarget( target) , . matchRuleType( " SwiftDriver Compilation " ) )
1273
+ archiverTask. checkInputs ( contain: [ . namePattern( . suffix( " Bar.bc " ) ) ] )
1271
1274
}
1272
1275
}
1273
1276
results. checkTarget ( " CoreFoo " ) { target in
@@ -1277,9 +1280,11 @@ fileprivate struct SwiftTaskConstructionTests: CoreBasedTests {
1277
1280
} else {
1278
1281
compileTask. checkCommandLineContains ( [ " -lto=llvm-thin " ] )
1279
1282
}
1283
+ compileTask. checkOutputs ( contain: [ . namePattern( . suffix( " Foo.bc " ) ) ] )
1280
1284
}
1281
1285
results. checkTask ( . matchTarget( target) , . matchRuleType( " Ld " ) ) { linkerTask in
1282
1286
results. checkTaskFollows ( linkerTask, . matchTarget( target) , . matchRuleType( " SwiftDriver Compilation " ) )
1287
+ linkerTask. checkInputs ( contain: [ . namePattern( . suffix( " Foo.bc " ) ) ] )
1283
1288
if ltoSetting == " YES_THIN " {
1284
1289
linkerTask. checkCommandLineMatches ( [ . anySequence, " -Xlinker " , " -cache_path_lto " , " -Xlinker " , . suffix( " /LTOCache " ) , . anySequence] )
1285
1290
}
0 commit comments