Adjust arguments based on move of SwiftPM's module output directory

This commit is contained in:
Boris Buegling
2023-12-06 08:45:09 -08:00
parent b7cc49bcfa
commit 61ad2ce4ff
2 changed files with 2 additions and 2 deletions

View File

@@ -449,7 +449,7 @@ extension SwiftPMWorkspace {
}
args += ["-c"]
args += td.sources.map { $0.pathString }
args += ["-I", buildPath.pathString]
args += ["-I", td.moduleOutputPath.parentDirectory.pathString]
args += try td.compileArguments()
return FileBuildSettings(

View File

@@ -159,7 +159,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
check("-target", hostTriple.tripleString, arguments: arguments)
#endif
check("-I", build.pathString, arguments: arguments)
check("-I", build.appending(component: "Modules").pathString, arguments: arguments)
check(aswift.pathString, arguments: arguments)
}