Skip to content

Commit d8f48f7

Browse files
committedFeb 5, 2024
Limit parallel jobs to 1 / use in-memeory pch storage
1 parent 4467636 commit d8f48f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎ls/lsp_client_clangd.go

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ func newClangdLSPClient(logger jsonrpc.FunctionLogger, dataFolder *paths.Path, l
5151
args := []string{
5252
ls.config.ClangdPath.String(),
5353
"-log=verbose",
54+
"-j", "1", // Limit parallel build jobs to 1
55+
"--pch-storage=memory",
5456
fmt.Sprintf(`--compile-commands-dir=%s`, ls.buildPath),
5557
}
5658
if dataFolder != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.