Merge pull request #637 from compnerd/resolution

SKCore: use `resolvingSymlinks` to resolve symlinks
This commit is contained in:
Saleem Abdulrasool
2022-09-22 07:36:16 -07:00
committed by GitHub

View File

@@ -162,7 +162,7 @@ public struct JSONCompilationDatabase: CompilationDatabase, Equatable {
let url = command.url
pathToCommands[url, default: []].append(commands.count)
let canonical = url.resolvingSymlinksInPath()
let canonical = URL(fileURLWithPath: resolveSymlinks(AbsolutePath(url.path)).pathString)
if canonical != url {
pathToCommands[canonical, default: []].append(commands.count)
}