File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Sources/BuildSystemIntegration Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,6 @@ package struct FileBuildSettings: Equatable, Sendable {
56
56
/// This patches the arguments by searching for the argument corresponding to
57
57
/// `originalFile` and replacing it.
58
58
package func patching( newFile: DocumentURI , originalFile: DocumentURI ) -> FileBuildSettings {
59
- return patching ( newFile: newFile. pseudoPath, originalFile: originalFile)
60
- }
61
-
62
- /// Return arguments suitable for use by `newFile`.
63
- ///
64
- /// This patches the arguments by searching for the argument corresponding to
65
- /// `originalFile` and replacing it.
66
- package func patching( newFile: String , originalFile: DocumentURI ) -> FileBuildSettings {
67
59
var arguments = self . compilerArguments
68
60
// URL.lastPathComponent is only set for file URLs but we want to also infer a file extension for non-file URLs like
69
61
// untitled:file.cpp
@@ -74,7 +66,7 @@ package struct FileBuildSettings: Equatable, Sendable {
74
66
// the file system.
75
67
$0. hasSuffix ( basename) && originalFile. pseudoPath. hasSuffix ( $0)
76
68
} ) {
77
- arguments [ index] = newFile
69
+ arguments [ index] = newFile. pseudoPath
78
70
// The `-x<lang>` flag needs to be before the possible `-c <header file>`
79
71
// argument in order for Clang to respect it. If there is a pre-existing `-x`
80
72
// flag though, Clang will honor that one instead since it comes after.
You can’t perform that action at this time.
0 commit comments