@@ -3289,8 +3289,8 @@ final class BuildPlanTests: XCTestCase {
3289
3289
. init( tool: . swift, kind: . define( " RLINUX " ) , condition: . init( platformNames: [ " linux " ] , config: " release " ) ) ,
3290
3290
. init( tool: . swift, kind: . define( " DMACOS " ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) ) ,
3291
3291
. init( tool: . swift, kind: . unsafeFlags( [ " -Isfoo " , " -L " , " sbar " ] ) ) ,
3292
- . init( tool: . swift, kind: . interoperabilityMode( . Cxx, " swift-5.9 " ) , condition: . init( platformNames: [ " linux " ] ) ) ,
3293
- . init( tool: . swift, kind: . interoperabilityMode( . Cxx, " swift-6.0 " ) , condition: . init( platformNames: [ " macos " ] ) ) ,
3292
+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx) , condition: . init( platformNames: [ " linux " ] ) ) ,
3293
+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx) , condition: . init( platformNames: [ " macos " ] ) ) ,
3294
3294
. init( tool: . swift, kind: . enableUpcomingFeature( " BestFeature " ) ) ,
3295
3295
. init( tool: . swift, kind: . enableUpcomingFeature( " WorstFeature " ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) )
3296
3296
]
@@ -3299,8 +3299,8 @@ final class BuildPlanTests: XCTestCase {
3299
3299
name: " exe " , dependencies: [ " bar " ] ,
3300
3300
settings: [
3301
3301
. init( tool: . swift, kind: . define( " FOO " ) ) ,
3302
- . init( tool: . swift, kind: . interoperabilityMode( . C, nil ) , condition: . init( platformNames: [ " linux " ] ) ) ,
3303
- . init( tool: . swift, kind: . interoperabilityMode( . Cxx, nil ) , condition: . init( platformNames: [ " macos " ] ) ) ,
3302
+ . init( tool: . swift, kind: . interoperabilityMode( . C) , condition: . init( platformNames: [ " linux " ] ) ) ,
3303
+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx) , condition: . init( platformNames: [ " macos " ] ) ) ,
3304
3304
. init( tool: . linker, kind: . linkedLibrary( " sqlite3 " ) ) ,
3305
3305
. init( tool: . linker, kind: . linkedFramework( " CoreData " ) , condition: . init( platformNames: [ " macos " ] ) ) ,
3306
3306
. init( tool: . linker, kind: . unsafeFlags( [ " -Ilfoo " , " -L " , " lbar " ] ) ) ,
@@ -3359,7 +3359,7 @@ final class BuildPlanTests: XCTestCase {
3359
3359
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] )
3360
3360
3361
3361
let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3362
- XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=swift-5.9 " , " -enable-upcoming-feature " , " BestFeature " , . end] )
3362
+ XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=default " , " -enable-upcoming-feature " , " BestFeature " , . end] )
3363
3363
3364
3364
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
3365
3365
XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , . end] )
@@ -3375,7 +3375,7 @@ final class BuildPlanTests: XCTestCase {
3375
3375
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] )
3376
3376
3377
3377
let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3378
- XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=swift-6.0 " , " -enable-upcoming-feature " , " BestFeature " , " -enable-upcoming-feature " , " WorstFeature " , . end] )
3378
+ XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=default " , " -enable-upcoming-feature " , " BestFeature " , " -enable-upcoming-feature " , " WorstFeature " , . end] )
3379
3379
3380
3380
let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
3381
3381
XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , " -cxx-interoperability-mode=default " , . end] )
0 commit comments