@@ -6302,19 +6302,19 @@ final class SwiftDriverTests: XCTestCase {
6302
6302
let diags = DiagnosticsEngine ( )
6303
6303
var driver = try Driver ( args: [ " swiftc " , " -target " , " arm64-apple-macosx10.13 " , " test.swift " , " -enable-experimental-feature " , " Embedded " , " -parse-as-library " , " -wmo " , " -o " , " a.out " , " -module-name " , " main " , " -enable-library-evolution " ] , diagnosticsEngine: diags)
6304
6304
_ = try driver. planBuild ( )
6305
- XCTAssertTrue ( diags. diagnostics. first!. message. text == error_no_library_evolution_embedded . message . text )
6305
+ XCTAssertTrue ( diags. diagnostics. first!. message. text == " Library evolution cannot be enabled with embedded Swift. " )
6306
6306
} catch _ { }
6307
6307
do {
6308
6308
let diags = DiagnosticsEngine ( )
6309
6309
var driver = try Driver ( args: [ " swiftc " , " -target " , " arm64-apple-macosx10.13 " , " test.swift " , " -enable-experimental-feature " , " Embedded " , " -parse-as-library " , " -o " , " a.out " , " -module-name " , " main " ] , diagnosticsEngine: diags)
6310
6310
_ = try driver. planBuild ( )
6311
- XCTAssertTrue ( diags. diagnostics. first!. message. text == error_need_wmo_embedded . message . text )
6311
+ XCTAssertTrue ( diags. diagnostics. first!. message. text == " Whole module optimization (wmo) must be enabled with embedded Swift. " )
6312
6312
} catch _ { }
6313
6313
do {
6314
6314
let diags = DiagnosticsEngine ( )
6315
6315
var driver = try Driver ( args: [ " swiftc " , " -target " , " arm64-apple-macosx10.13 " , " test.swift " , " -enable-experimental-feature " , " Embedded " , " -parse-as-library " , " -wmo " , " -o " , " a.out " , " -module-name " , " main " , " -enable-objc-interop " ] , diagnosticsEngine: diags)
6316
6316
_ = try driver. planBuild ( )
6317
- XCTAssertTrue ( diags. diagnostics. first!. message. text == error_no_objc_interop_embedded . message . text )
6317
+ XCTAssertTrue ( diags. diagnostics. first!. message. text == " Objective-C interop cannot be enabled with embedded Swift. " )
6318
6318
} catch _ { }
6319
6319
}
6320
6320
0 commit comments