@@ -3187,7 +3187,7 @@ final class SwiftDriverTests: XCTestCase {
31873187 " -emit-library " , " -driver-filelist-threshold=0 "
31883188 ] )
31893189
3190- var jobs = try driver. planBuild ( )
3190+ var jobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
31913191 XCTAssertEqual ( jobs. count, 4 )
31923192 XCTAssertEqual ( getFileListElements ( for: " -filelist " , job: jobs [ 2 ] ) ,
31933193 [ . temporary( try . init( validating: " hello-1.o " ) ) ] )
@@ -3513,7 +3513,7 @@ final class SwiftDriverTests: XCTestCase {
35133513 // We don't expect partial jobs when asking only for the swiftmodule with
35143514 // -experimental-emit-module-separately.
35153515 var driver = try Driver ( args: [ " swiftc " , " foo.swift " , " bar.swift " , " -module-name " , " Test " , " -emit-module-path " , rebase ( " Test.swiftmodule " , at: root) , " -experimental-emit-module-separately " ] )
3516- let plannedJobs = try driver. planBuild ( )
3516+ let plannedJobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
35173517 XCTAssertEqual ( plannedJobs. count, 3 )
35183518 XCTAssertEqual ( Set ( plannedJobs. map { $0. kind } ) , Set ( [ . emitModule, . compile] ) )
35193519 XCTAssertTrue ( plannedJobs [ 0 ] . tool. name. contains ( " swift " ) )
@@ -3529,7 +3529,7 @@ final class SwiftDriverTests: XCTestCase {
35293529 do {
35303530 // Specifying -no-emit-module-separately uses a mergeModule job.
35313531 var driver = try Driver ( args: [ " swiftc " , " foo.swift " , " bar.swift " , " -module-name " , " Test " , " -emit-module-path " , " /foo/bar/Test.swiftmodule " , " -experimental-emit-module-separately " , " -no-emit-module-separately " ] )
3532- let plannedJobs = try driver. planBuild ( )
3532+ let plannedJobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
35333533 XCTAssertEqual ( plannedJobs. count, 3 )
35343534 XCTAssertEqual ( Set ( plannedJobs. map { $0. kind } ) , Set ( [ . compile, . mergeModule] ) )
35353535 }
@@ -3538,7 +3538,7 @@ final class SwiftDriverTests: XCTestCase {
35383538 // Calls using the driver to link a library shouldn't trigger an emit-module job, like in LLDB tests.
35393539 var driver = try Driver ( args: [ " swiftc " , " -emit-library " , " foo.swiftmodule " , " foo.o " , " -emit-module-path " , " foo.swiftmodule " , " -experimental-emit-module-separately " , " -target " , " x86_64-apple-macosx10.15 " , " -module-name " , " Test " ] ,
35403540 env: envVars)
3541- let plannedJobs = try driver. planBuild ( )
3541+ let plannedJobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
35423542 XCTAssertEqual ( plannedJobs. count, 1 )
35433543 XCTAssertEqual ( Set ( plannedJobs. map { $0. kind } ) , Set ( [ . link] ) )
35443544 }
@@ -3547,7 +3547,7 @@ final class SwiftDriverTests: XCTestCase {
35473547 // Use emit-module to build sil files.
35483548 var driver = try Driver ( args: [ " swiftc " , " foo.sil " , " bar.sil " , " -module-name " , " Test " , " -emit-module-path " , " /foo/bar/Test.swiftmodule " , " -experimental-emit-module-separately " , " -emit-library " , " -target " , " x86_64-apple-macosx10.15 " ] ,
35493549 env: envVars)
3550- let plannedJobs = try driver. planBuild ( )
3550+ let plannedJobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
35513551 XCTAssertEqual ( plannedJobs. count, 4 )
35523552 XCTAssertEqual ( Set ( plannedJobs. map { $0. kind } ) , Set ( [ . compile, . emitModule, . link] ) )
35533553 }
@@ -3556,7 +3556,7 @@ final class SwiftDriverTests: XCTestCase {
35563556 // Schedule an emit-module separately job even if there are non-compilable inputs.
35573557 var driver = try Driver ( args: [ " swiftc " , " foo.swift " , " bar.dylib " , " -emit-library " , " foo.dylib " , " -emit-module-path " , " foo.swiftmodule " ] ,
35583558 env: envVars)
3559- let plannedJobs = try driver. planBuild ( )
3559+ let plannedJobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
35603560 XCTAssertEqual ( plannedJobs. count, 3 )
35613561 XCTAssertEqual ( Set ( plannedJobs. map { $0. kind } ) , Set ( [ . compile, . emitModule, . link] ) )
35623562
@@ -5212,14 +5212,14 @@ final class SwiftDriverTests: XCTestCase {
52125212 """
52135213 digraph Jobs {
52145214 " emitModule ( \( executableName ( " swift-frontend " ) ) ) " [style=bold];
5215- " \r ebase( " test.swift " ) " [fontsize=12];
5216- " \r ebase( " test.swift " ) " -> " emitModule ( \( executableName ( " swift-frontend " ) ) ) " [color=blue];
5217- " \r ebase( " test.swiftmodule " ) " [fontsize=12];
5218- " emitModule ( \( executableName ( " swift-frontend " ) ) ) " -> " \r ebase( " test.swiftmodule " ) " [color=green];
5219- " \r ebase( " test.swiftdoc " ) " [fontsize=12];
5220- " emitModule ( \( executableName ( " swift-frontend " ) ) ) " -> " \r ebase( " test.swiftdoc " ) " [color=green];
5215+ " \( rebase ( " test.swift " ) ) " [fontsize=12];
5216+ " \( rebase ( " test.swift " ) ) " -> " emitModule ( \( executableName ( " swift-frontend " ) ) ) " [color=blue];
5217+ " \( rebase ( " test.swiftmodule " ) ) " [fontsize=12];
5218+ " emitModule ( \( executableName ( " swift-frontend " ) ) ) " -> " \( rebase ( " test.swiftmodule " ) ) " [color=green];
5219+ " \( rebase ( " test.swiftdoc " ) ) " [fontsize=12];
5220+ " emitModule ( \( executableName ( " swift-frontend " ) ) ) " -> " \( rebase ( " test.swiftdoc " ) ) " [color=green];
52215221 " compile ( \( executableName ( " swift-frontend " ) ) ) " [style=bold];
5222- " \r ebase( " test.swift " ) " -> " compile ( \( executableName ( " swift-frontend " ) ) ) " [color=blue];
5222+ " \( rebase ( " test.swift " ) ) " -> " compile ( \( executableName ( " swift-frontend " ) ) ) " [color=blue];
52235223 " test-1.o " [fontsize=12];
52245224 " compile ( \( executableName ( " swift-frontend " ) ) ) " -> " test-1.o " [color=green];
52255225 " autolinkExtract ( \( executableName ( " swift-autolink-extract " ) ) ) " [style=bold];
@@ -7047,7 +7047,7 @@ final class SwiftDriverTests: XCTestCase {
70477047 var driver = try Driver (
70487048 args: [ " swiftc " , " -emit-library " , " foo.swift " , " bar.o " , " -o " , " foo.l " ] ,
70497049 env: env)
7050- let jobs = try driver. planBuild ( )
7050+ let jobs = try driver. planBuild ( ) . removingAutolinkExtractJobs ( )
70517051 XCTAssertEqual ( jobs. count, 2 )
70527052 let linkJob = jobs [ 1 ]
70537053 XCTAssertEqual ( linkJob. tool. name, swiftClang. pathString)
0 commit comments