@@ -3242,6 +3242,8 @@ final class BuildPlanTests: XCTestCase {
32423242 . init( tool: . swift, kind: . define( " RLINUX " ) , condition: . init( platformNames: [ " linux " ] , config: " release " ) ) ,
32433243 . init( tool: . swift, kind: . define( " DMACOS " ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) ) ,
32443244 . init( tool: . swift, kind: . unsafeFlags( [ " -Isfoo " , " -L " , " sbar " ] ) ) ,
3245+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx, " swift-5.9 " ) , condition: . init( platformNames: [ " linux " ] ) ) ,
3246+ . init( tool: . swift, kind: . interoperabilityMode( . Cxx, " swift-6.0 " ) , condition: . init( platformNames: [ " macos " ] ) ) ,
32453247 . init( tool: . swift, kind: . enableUpcomingFeature( " BestFeature " ) ) ,
32463248 . init( tool: . swift, kind: . enableUpcomingFeature( " WorstFeature " ) , condition: . init( platformNames: [ " macos " ] , config: " debug " ) )
32473249 ]
@@ -3250,6 +3252,7 @@ final class BuildPlanTests: XCTestCase {
32503252 name: " exe " , dependencies: [ " bar " ] ,
32513253 settings: [
32523254 . init( tool: . swift, kind: . define( " FOO " ) ) ,
3255+ . init( tool: . swift, kind: . interoperabilityMode( . C, nil ) ) ,
32533256 . init( tool: . linker, kind: . linkedLibrary( " sqlite3 " ) ) ,
32543257 . init( tool: . linker, kind: . linkedFramework( " CoreData " ) , condition: . init( platformNames: [ " macos " ] ) ) ,
32553258 . init( tool: . linker, kind: . unsafeFlags( [ " -Ilfoo " , " -L " , " lbar " ] ) ) ,
@@ -3308,7 +3311,7 @@ final class BuildPlanTests: XCTestCase {
33083311 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] )
33093312
33103313 let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3311- XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , " -enable-upcoming-feature " , " BestFeature " , . end] )
3314+ XCTAssertMatch ( bar, [ . anySequence, " -DLINUX " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=swift-5.9 " , " - enable-upcoming-feature" , " BestFeature " , . end] )
33123315
33133316 let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
33143317 XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , . end] )
@@ -3324,7 +3327,7 @@ final class BuildPlanTests: XCTestCase {
33243327 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] )
33253328
33263329 let bar = try result. target ( for: " bar " ) . swiftTarget ( ) . compileArguments ( )
3327- XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , " -enable-upcoming-feature " , " BestFeature " , " -enable-upcoming-feature " , " WorstFeature " , . end] )
3330+ XCTAssertMatch ( bar, [ . anySequence, " -DDMACOS " , " -Isfoo " , " -L " , " sbar " , " -cxx-interoperability-mode=swift-6.0 " , " - enable-upcoming-feature" , " BestFeature " , " -enable-upcoming-feature " , " WorstFeature " , . end] )
33283331
33293332 let exe = try result. target ( for: " exe " ) . swiftTarget ( ) . compileArguments ( )
33303333 XCTAssertMatch ( exe, [ . anySequence, " -DFOO " , . end] )
0 commit comments