mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-06 18:24:36 +01:00
Adjust arguments based on move of SwiftPM's module output directory
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user