@@ -78,10 +78,10 @@ final class BuildPlanTests: XCTestCase {
78
78
result. checkTargetsCount ( 2 )
79
79
80
80
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
81
- XCTAssertMatch ( exe, [ " -swift-version " , " 3 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
81
+ XCTAssertMatch ( exe, [ " -swift-version " , " 3 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
82
82
83
83
let lib = try result. target ( for: " lib " ) . swiftTarget ( ) . compileArguments ( )
84
- XCTAssertMatch ( lib, [ " -swift-version " , " 3 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
84
+ XCTAssertMatch ( lib, [ " -swift-version " , " 3 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
85
85
86
86
#if os(macOS)
87
87
let linkArguments = [
@@ -334,7 +334,7 @@ final class BuildPlanTests: XCTestCase {
334
334
XCTAssertEqual ( lib. moduleMap, AbsolutePath ( " /path/to/build/debug/lib.build/module.modulemap " ) )
335
335
336
336
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
337
- XCTAssertMatch ( exe, [ " -swift-version " , " 3 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -Xcc " , " -fmodule-map-file=/path/to/build/debug/lib.build/module.modulemap " , " -I " , " /Pkg/Sources/lib/include " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
337
+ XCTAssertMatch ( exe, [ " -swift-version " , " 3 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -Xcc " , " -fmodule-map-file=/path/to/build/debug/lib.build/module.modulemap " , " -I " , " /Pkg/Sources/lib/include " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
338
338
339
339
#if os(macOS)
340
340
XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [
@@ -370,10 +370,10 @@ final class BuildPlanTests: XCTestCase {
370
370
#endif
371
371
372
372
let foo = try result. target ( for: " Foo " ) . swiftTarget ( ) . compileArguments ( )
373
- XCTAssertMatch ( foo, [ " -swift-version " , " 3 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
373
+ XCTAssertMatch ( foo, [ " -swift-version " , " 3 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
374
374
375
375
let fooTests = try result. target ( for: " FooTests " ) . swiftTarget ( ) . compileArguments ( )
376
- XCTAssertMatch ( fooTests, [ " -swift-version " , " 3 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
376
+ XCTAssertMatch ( fooTests, [ " -swift-version " , " 3 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
377
377
378
378
#if os(macOS)
379
379
XCTAssertEqual ( try result. buildProduct ( for: " PkgPackageTests " ) . linkArguments ( ) , [
@@ -409,7 +409,7 @@ final class BuildPlanTests: XCTestCase {
409
409
result. checkProductsCount ( 1 )
410
410
result. checkTargetsCount ( 1 )
411
411
412
- XCTAssertMatch ( try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( ) , [ " -swift-version " , " 3 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -Xcc " , " -fmodule-map-file=/Clibgit/module.modulemap " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
412
+ XCTAssertMatch ( try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( ) , [ " -swift-version " , " 3 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -Xcc " , " -fmodule-map-file=/Clibgit/module.modulemap " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
413
413
414
414
#if os(macOS)
415
415
XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [
@@ -550,10 +550,10 @@ final class BuildPlanTests: XCTestCase {
550
550
result. checkTargetsCount ( 2 )
551
551
552
552
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
553
- XCTAssertMatch ( exe, [ " -swift-version " , " 4 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
553
+ XCTAssertMatch ( exe, [ " -swift-version " , " 4 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
554
554
555
555
let lib = try result. target ( for: " lib " ) . swiftTarget ( ) . compileArguments ( )
556
- XCTAssertMatch ( lib, [ " -swift-version " , " 4 " , " -Onone " , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
556
+ XCTAssertMatch ( lib, [ " -swift-version " , " 4 " , " -enable-batch-mode " , " - Onone" , " -g " , " -enable-testing " , . equal( j) , " -DSWIFT_PACKAGE " , " -DDEBUG " , " -module-cache-path " , " /path/to/build/debug/ModuleCache " , . anySequence] )
557
557
558
558
#if os(macOS)
559
559
let linkArguments = [
0 commit comments