Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct ClangBuildArgsProvider {
else {
continue
}
let output = command.output.map { command.directory.appending($0) }
let output = command.output.map { $0.absolute(in: command.directory) }
if let existing = commandsToAdd[relFilePath],
let existingOutput = existing.output,
output == nil || existingOutput.exists || !output!.exists {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension CompileCommands {
struct Element: Decodable {
var directory: AbsolutePath
var file: AbsolutePath
var output: RelativePath?
var output: AnyPath?
var command: Command
}
}
Expand Down