@@ -3311,8 +3311,8 @@ final class BuildPlanTests: XCTestCase {
3311
3311
. init( tool: . swift, kind: . define( " RLINUX " ) , condition: . init( platformNames: [ " linux " ] , config: " release " ) ) ,
3312
3312
. init( tool: . swift, kind: . define( " DMACOS " ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) ) ,
3313
3313
. init( tool: . swift, kind: . unsafeFlags( [ " -Isfoo " , " -L " , " sbar " ] ) ) ,
3314
- . init( tool: . swift, kind: . interoperabilityMode( . Cxx, " swift-5.9 " ) , condition: . init( platformNames: [ " linux " ] ) ) ,
3315
- . init( tool: . swift, kind: . interoperabilityMode( . Cxx, " swift-6.0 " ) , condition: . init( platformNames: [ " macos " ] ) ) ,
3314
+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx) , condition: . init( platformNames: [ " linux " ] ) ) ,
3315
+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx) , condition: . init( platformNames: [ " macos " ] ) ) ,
3316
3316
. init( tool: . swift, kind: . enableUpcomingFeature( " BestFeature " ) ) ,
3317
3317
. init( tool: . swift, kind: . enableUpcomingFeature( " WorstFeature " ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) )
3318
3318
]
@@ -3321,8 +3321,8 @@ final class BuildPlanTests: XCTestCase {
3321
3321
name: " exe " , dependencies: [ " bar " ] ,
3322
3322
settings: [
3323
3323
. init( tool: . swift, kind: . define( " FOO " ) ) ,
3324
- . init( tool: . swift, kind: . interoperabilityMode( . C, nil ) , condition: . init( platformNames: [ " linux " ] ) ) ,
3325
- . init( tool: . swift, kind: . interoperabilityMode( . Cxx, nil ) , condition: . init( platformNames: [ " macos " ] ) ) ,
3324
+ . init( tool: . swift, kind: . interoperabilityMode( . C) , condition: . init( platformNames: [ " linux " ] ) ) ,
3325
+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx) , condition: . init( platformNames: [ " macos " ] ) ) ,
3326
3326
. init( tool: . linker, kind: . linkedLibrary( " sqlite3 " ) ) ,
3327
3327
. init( tool: . linker, kind: . linkedFramework( " CoreData " ) , condition: . init( platformNames: [ " macos " ] ) ) ,
3328
3328
. init( tool: . linker, kind: . unsafeFlags( [ " -Ilfoo " , " -L " , " lbar " ] ) ) ,
@@ -3381,7 +3381,7 @@ final class BuildPlanTests: XCTestCase {
3381
3381
XCTAssertMatch ( cbar, [ . anySequence, " -DCCC=2 " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " headers " ) ) " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " cppheaders " ) ) " , " -Icfoo " , " -L " , " cbar " , " -Icxxfoo " , " -L " , " cxxbar " , . end] )
3382
3382
3383
3383
let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3384
- XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=swift-5.9 " , " -enable-upcoming-feature " , " BestFeature " , . end] )
3384
+ XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=default " , " -enable-upcoming-feature " , " BestFeature " , . end] )
3385
3385
3386
3386
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
3387
3387
XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , . end] )
@@ -3397,7 +3397,7 @@ final class BuildPlanTests: XCTestCase {
3397
3397
XCTAssertMatch ( cbar, [ . anySequence, " -DCCC=2 " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " headers " ) ) " , " -I \( A . appending ( components: " Sources " , " cbar " , " Sources " , " cppheaders " ) ) " , " -Icfoo " , " -L " , " cbar " , " -Icxxfoo " , " -L " , " cxxbar " , . end] )
3398
3398
3399
3399
let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3400
- XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=swift-6.0 " , " -enable-upcoming-feature " , " BestFeature " , " -enable-upcoming-feature " , " WorstFeature " , . end] )
3400
+ XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=default " , " -enable-upcoming-feature " , " BestFeature " , " -enable-upcoming-feature " , " WorstFeature " , . end] )
3401
3401
3402
3402
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
3403
3403
XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , " -cxx-interoperability-mode=default " , . end] )
0 commit comments