We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf4efe commit 8fdcd16Copy full SHA for 8fdcd16
Sources/SourceKit/Clang/ClangLanguageServer.swift
@@ -127,6 +127,14 @@ extension ClangLanguageServerShim {
127
"-Xclang", "-fmodule-format=raw"
128
])
129
}
130
+ if let workingDirectory = settings.workingDirectory {
131
+ // FIXME: this is a workaround for clangd not respecting the compilation
132
+ // database's "directory" field for relative -fmodules-cache-path.
133
+ // rdar://63984913
134
+ settings.compilerArguments.append(contentsOf: [
135
+ "-working-directory", workingDirectory
136
+ ])
137
+ }
138
139
clangd.send(DidChangeConfigurationNotification(settings: .clangd(
140
ClangWorkspaceSettings(
0 commit comments