@@ -707,8 +707,8 @@ final class BuildPlanTests: XCTestCase {
707
707
" @ \( buildPath. appending ( components: " exe.product " , " Objects.LinkFileList " ) ) " ,
708
708
" -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift-5.5/macosx " ,
709
709
" -target " , defaultTargetTriple,
710
- " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Modules " , " lib.swiftmodule " ) . pathString,
711
710
" -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " exe.build " , " exe.swiftmodule " ) . pathString,
711
+ " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " lib.swiftmodule " ) . pathString,
712
712
" -g " ,
713
713
]
714
714
#elseif os(Windows)
@@ -931,7 +931,7 @@ final class BuildPlanTests: XCTestCase {
931
931
let contents : String = try fs. readFileContents ( yaml)
932
932
let swiftGetVersionFilePath = try XCTUnwrap ( llbuild. swiftGetVersionFiles. first? . value)
933
933
XCTAssertMatch ( contents, . contains( """
934
- inputs: [ " \( Pkg . appending ( components: " Sources " , " exe " , " main.swift " ) . escapedPathString) " , " \( swiftGetVersionFilePath. escapedPathString) " , " \( buildPath. appending ( components: " Modules " , " PkgLib.swiftmodule " ) . escapedPathString) " , " \( buildPath. appending ( components: " exe.build " , " sources " ) . escapedPathString) " ]
934
+ inputs: [ " \( Pkg . appending ( components: " Sources " , " exe " , " main.swift " ) . escapedPathString) " , " \( swiftGetVersionFilePath. escapedPathString) " , " \( buildPath. appending ( components: " PkgLib.swiftmodule " ) . escapedPathString) " , " \( buildPath. appending ( components: " exe.build " , " sources " ) . escapedPathString) " ]
935
935
""" ) )
936
936
937
937
}
@@ -1859,8 +1859,8 @@ final class BuildPlanTests: XCTestCase {
1859
1859
" @ \( buildPath. appending ( components: " PkgPackageTests.product " , " Objects.LinkFileList " ) ) " ] +
1860
1860
rpathsForBackdeployment +
1861
1861
[ " -target " , " \( hostTriple. tripleString ( forPlatformVersion: version) ) " ,
1862
- " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Modules " , " Foo.swiftmodule " ) . pathString,
1863
- " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Modules " , " FooTests.swiftmodule " ) . pathString,
1862
+ " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Foo.swiftmodule " ) . pathString,
1863
+ " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " FooTests.swiftmodule " ) . pathString,
1864
1864
" -g " ,
1865
1865
] )
1866
1866
#elseif os(Windows)
@@ -2436,7 +2436,7 @@ final class BuildPlanTests: XCTestCase {
2436
2436
" @ \( buildPath. appending ( components: " Bar-Baz.product " , " Objects.LinkFileList " ) ) " ,
2437
2437
" -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift-5.5/macosx " ,
2438
2438
" -target " , defaultTargetTriple,
2439
- " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Modules " , " Bar.swiftmodule " ) . pathString,
2439
+ " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Bar.swiftmodule " ) . pathString,
2440
2440
" -g " ,
2441
2441
] )
2442
2442
#elseif os(Windows)
@@ -2555,7 +2555,7 @@ final class BuildPlanTests: XCTestCase {
2555
2555
" @ \( buildPath. appending ( components: " lib.product " , " Objects.LinkFileList " ) ) " ,
2556
2556
" -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift-5.5/macosx " ,
2557
2557
" -target " , defaultTargetTriple,
2558
- " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Modules " , " lib.swiftmodule " ) . pathString,
2558
+ " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " lib.swiftmodule " ) . pathString,
2559
2559
" -g " ,
2560
2560
]
2561
2561
#elseif os(Windows)
@@ -4378,7 +4378,7 @@ final class BuildPlanTests: XCTestCase {
4378
4378
XCTAssertMatch ( contents, . contains( """
4379
4379
" \( buildPath. appending ( components: " Bar.build " , " main.m.o " ) . escapedPathString) " :
4380
4380
tool: clang
4381
- inputs: [ " \( buildPath. appending ( components: " Modules " , " Foo.swiftmodule " ) . escapedPathString) " , " \( PkgA . appending ( components: " Sources " , " Bar " , " main.m " ) . escapedPathString) " ]
4381
+ inputs: [ " \( buildPath. appending ( components: " Foo.swiftmodule " ) . escapedPathString) " , " \( PkgA . appending ( components: " Sources " , " Bar " , " main.m " ) . escapedPathString) " ]
4382
4382
outputs: [ " \( buildPath. appending ( components: " Bar.build " , " main.m.o " ) . escapedPathString) " ]
4383
4383
description: " Compiling Bar main.m "
4384
4384
""" ) )
@@ -4484,7 +4484,7 @@ final class BuildPlanTests: XCTestCase {
4484
4484
XCTAssertMatch ( contents, . contains( """
4485
4485
" \( buildPath. appending ( components: " Bar.build " , " main.m.o " ) . escapedPathString) " :
4486
4486
tool: clang
4487
- inputs: [ " \( buildPath. appending ( components: " Modules " , " Foo.swiftmodule " ) . escapedPathString) " , " \( PkgA . appending ( components: " Sources " , " Bar " , " main.m " ) . escapedPathString) " ]
4487
+ inputs: [ " \( buildPath. appending ( components: " Foo.swiftmodule " ) . escapedPathString) " , " \( PkgA . appending ( components: " Sources " , " Bar " , " main.m " ) . escapedPathString) " ]
4488
4488
outputs: [ " \( buildPath. appending ( components: " Bar.build " , " main.m.o " ) . escapedPathString) " ]
4489
4489
description: " Compiling Bar main.m "
4490
4490
""" ) )
@@ -4654,10 +4654,10 @@ final class BuildPlanTests: XCTestCase {
4654
4654
XCTAssertMatch ( contents, . contains( """
4655
4655
" \( buildPath. appending ( components: " lib.build " , " lib.swiftmodule.o " ) . escapedPathString) " :
4656
4656
tool: shell
4657
- inputs: [ " \( buildPath. appending ( components: " Modules " , " lib.swiftmodule " ) . escapedPathString) " ]
4657
+ inputs: [ " \( buildPath. appending ( components: " lib.swiftmodule " ) . escapedPathString) " ]
4658
4658
outputs: [ " \( buildPath. appending ( components: " lib.build " , " lib.swiftmodule.o " ) . escapedPathString) " ]
4659
4659
description: " Wrapping AST for lib for debugging "
4660
- args: [ " \( result. plan. destinationBuildParameters. toolchain. swiftCompilerPath. escapedPathString) " , " -modulewrap " , " \( buildPath. appending ( components: " Modules " , " lib.swiftmodule " ) . escapedPathString) " , " -o " , " \( buildPath. appending ( components: " lib.build " , " lib.swiftmodule.o " ) . escapedPathString) " , " -target " , " x86_64-unknown-linux-gnu " ]
4660
+ args: [ " \( result. plan. destinationBuildParameters. toolchain. swiftCompilerPath. escapedPathString) " , " -modulewrap " , " \( buildPath. appending ( components: " lib.swiftmodule " ) . escapedPathString) " , " -o " , " \( buildPath. appending ( components: " lib.build " , " lib.swiftmodule.o " ) . escapedPathString) " , " -target " , " x86_64-unknown-linux-gnu " ]
4661
4661
""" ) )
4662
4662
}
4663
4663
@@ -5290,7 +5290,7 @@ final class BuildPlanTests: XCTestCase {
5290
5290
5291
5291
let yamlContents : String = try fs. readFileContents ( yaml)
5292
5292
let inputs : SerializedJSON = """
5293
- inputs: [ " \( AbsolutePath ( " /Pkg/Snippets/ASnippet.swift " ) ) " , " \( swiftGetVersionFilePath) " , " \( AbsolutePath ( " /Pkg/.build/debug/Modules/ Lib.swiftmodule " ) ) "
5293
+ inputs: [ " \( AbsolutePath ( " /Pkg/Snippets/ASnippet.swift " ) ) " , " \( swiftGetVersionFilePath) " , " \( AbsolutePath ( " /Pkg/.build/debug/Lib.swiftmodule " ) ) "
5294
5294
"""
5295
5295
XCTAssertMatch ( yamlContents, . contains( inputs. underlying) )
5296
5296
}
@@ -5505,8 +5505,8 @@ final class BuildPlanTests: XCTestCase {
5505
5505
" @ \( buildPath. appending ( components: " exe.product " , " Objects.LinkFileList " ) ) " ,
5506
5506
" -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift-5.5/macosx " ,
5507
5507
" -target " , defaultTargetTriple,
5508
- " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " Modules " , " lib.swiftmodule " ) . pathString,
5509
5508
" -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " exe.build " , " exe.swiftmodule " ) . pathString,
5509
+ " -Xlinker " , " -add_ast_path " , " -Xlinker " , buildPath. appending ( components: " lib.swiftmodule " ) . pathString,
5510
5510
" -g " ,
5511
5511
]
5512
5512
#elseif os(Windows)
0 commit comments