diff --git a/Sources/SKCore/CompilationDatabase.swift b/Sources/SKCore/CompilationDatabase.swift index ac2c0a07..2aec18e5 100644 --- a/Sources/SKCore/CompilationDatabase.swift +++ b/Sources/SKCore/CompilationDatabase.swift @@ -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) }