@@ -341,6 +341,7 @@ private let parsedToolsetNoRootDestination = SwiftSDK(
341341 ] ,
342342 rootPaths: [ ]
343343 ) ,
344+ swiftSDKManifest: toolsetNoRootSwiftSDKv4. path,
344345 pathsConfiguration: . init(
345346 sdkRootPath: bundleRootPath. appending ( sdkRootDir) ,
346347 toolsetPaths: [ " /tools/otherToolsNoRoot.json " ]
@@ -359,6 +360,7 @@ private let parsedToolsetRootDestination = SwiftSDK(
359360 ] ,
360361 rootPaths: [ try ! AbsolutePath ( validating: " /custom " ) ]
361362 ) ,
363+ swiftSDKManifest: toolsetRootSwiftSDKv4. path,
362364 pathsConfiguration: . init(
363365 sdkRootPath: bundleRootPath. appending ( sdkRootDir) ,
364366 toolsetPaths: [ " /tools/someToolsWithRoot.json " , " /tools/otherToolsNoRoot.json " ]
@@ -376,6 +378,7 @@ private let parsedToolsetNoSDKRootPathDestination = SwiftSDK(
376378 ] ,
377379 rootPaths: [ ]
378380 ) ,
381+ swiftSDKManifest: androidWithoutSDKRootPathSwiftSDKv4. path,
379382 pathsConfiguration: . init(
380383 sdkRootPath: nil ,
381384 toolsetPaths: [ " /tools/otherToolsNoRoot.json " ]
@@ -455,7 +458,24 @@ final class SwiftSDKTests: XCTestCase {
455458 observabilityScope: observability
456459 )
457460
458- XCTAssertEqual ( toolsetNoRootDestinationV3Decoded, [ parsedToolsetNoRootDestination] )
461+ let parsedToolsetNoRootDestinationV3 = SwiftSDK (
462+ targetTriple: linuxGNUTargetTriple,
463+ toolset: . init(
464+ knownTools: [
465+ . librarian: . init( path: try ! AbsolutePath ( validating: " \( usrBinTools [ . librarian] !) " ) ) ,
466+ . linker: . init( path: try ! AbsolutePath ( validating: " \( usrBinTools [ . linker] !) " ) ) ,
467+ . debugger: . init( path: try ! AbsolutePath ( validating: " \( usrBinTools [ . debugger] !) " ) ) ,
468+ ] ,
469+ rootPaths: [ ]
470+ ) ,
471+ swiftSDKManifest: toolsetNoRootDestinationV3. path,
472+ pathsConfiguration: . init(
473+ sdkRootPath: bundleRootPath. appending ( sdkRootDir) ,
474+ toolsetPaths: [ " /tools/otherToolsNoRoot.json " ]
475+ . map { try ! AbsolutePath ( validating: $0) }
476+ )
477+ )
478+ XCTAssertEqual ( toolsetNoRootDestinationV3Decoded, [ parsedToolsetNoRootDestinationV3] )
459479
460480 let toolsetRootDestinationV3Decoded = try SwiftSDK . decode (
461481 fromFile: toolsetRootDestinationV3. path,
@@ -464,7 +484,26 @@ final class SwiftSDKTests: XCTestCase {
464484 observabilityScope: observability
465485 )
466486
467- XCTAssertEqual ( toolsetRootDestinationV3Decoded, [ parsedToolsetRootDestination] )
487+ let parsedToolsetRootDestinationV3Decoded = SwiftSDK (
488+ targetTriple: linuxGNUTargetTriple,
489+ toolset: . init(
490+ knownTools: [
491+ . cCompiler: . init( extraCLIOptions: cCompilerOptions) ,
492+ . librarian: . init( path: try ! AbsolutePath ( validating: " \( usrBinTools [ . librarian] !) " ) ) ,
493+ . linker: . init( path: try ! AbsolutePath ( validating: " \( usrBinTools [ . linker] !) " ) ) ,
494+ . debugger: . init( path: try ! AbsolutePath ( validating: " \( usrBinTools [ . debugger] !) " ) ) ,
495+ ] ,
496+ rootPaths: [ try ! AbsolutePath ( validating: " /custom " ) ]
497+ ) ,
498+ swiftSDKManifest: toolsetRootDestinationV3. path,
499+ pathsConfiguration: . init(
500+ sdkRootPath: bundleRootPath. appending ( sdkRootDir) ,
501+ toolsetPaths: [ " /tools/someToolsWithRoot.json " , " /tools/otherToolsNoRoot.json " ]
502+ . map { try ! AbsolutePath ( validating: $0) }
503+ )
504+ )
505+
506+ XCTAssertEqual ( toolsetRootDestinationV3Decoded, [ parsedToolsetRootDestinationV3Decoded] )
468507
469508 XCTAssertThrowsError ( try SwiftSDK . decode (
470509 fromFile: missingToolsetDestinationV3. path,
0 commit comments