mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Interpret the -index-store-path relative to the command’s directory
Fixes #1856 rdar://141004197
This commit is contained in:
@@ -99,7 +99,10 @@ package actor CompilationDatabaseBuildSystem: BuiltInBuildSystem {
|
||||
let args = command.commandLine
|
||||
for i in args.indices.reversed() {
|
||||
if args[i] == "-index-store-path" && i + 1 < args.count {
|
||||
return URL(fileURLWithPath: args[i + 1])
|
||||
return URL(
|
||||
fileURLWithPath: args[i + 1],
|
||||
relativeTo: URL(fileURLWithPath: command.directory, isDirectory: true)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user