diff --git a/utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/ClangBuildArgsProvider.swift b/utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/ClangBuildArgsProvider.swift index a226e59499a83..4d9075406ca64 100644 --- a/utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/ClangBuildArgsProvider.swift +++ b/utils/swift-xcodegen/Sources/SwiftXcodeGen/BuildArgs/ClangBuildArgsProvider.swift @@ -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 { diff --git a/utils/swift-xcodegen/Sources/SwiftXcodeGen/Command/CompileCommands.swift b/utils/swift-xcodegen/Sources/SwiftXcodeGen/Command/CompileCommands.swift index 64b04c73a81c4..09c84e442fb96 100644 --- a/utils/swift-xcodegen/Sources/SwiftXcodeGen/Command/CompileCommands.swift +++ b/utils/swift-xcodegen/Sources/SwiftXcodeGen/Command/CompileCommands.swift @@ -27,7 +27,7 @@ extension CompileCommands { struct Element: Decodable { var directory: AbsolutePath var file: AbsolutePath - var output: RelativePath? + var output: AnyPath? var command: Command } }