Skip to content

How to specify platform-specific clangd arguments like --malloc-trim? #892

@emmenlau

Description

@emmenlau

I have my clangd arguments in the vscode workspace settings MyProject.code-workspace. This helps so that all developers benefit from a good setup directly after cloning the project.

On Linux we urgently require the argument --malloc-trim to avoid frequent machine crashes due to out-of-memory. With this option, the RAM usage drops by 50-80%.

However, this option does not exist on Windows. Windows developers get a clangd startup error about the unsupported option.

Is there any way to set this option platform-specific? Or some workaround, to get this going?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions