mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
build: enable cmake workflow presets (#21860)
Workflow presets allows combining configure, build, test and packaging steps and makes it possible to run everything in a single command. So cmake --preset iwyu cmake --build --preset iwyu instead becomes cmake --workflow --preset iwyu Workflow presets requires at least cmake version 3.25 to use.
This commit is contained in:
@@ -246,10 +246,9 @@ You can lint a single file (but this will _not_ exclude legacy errors):
|
||||
For managing includes in C files, use [include-what-you-use].
|
||||
|
||||
- [Install include-what-you-use][include-what-you-use-install]
|
||||
- To see which includes needs fixing just use the cmake preset `iwyu`:
|
||||
- To see which includes needs fixing use the cmake preset `iwyu`:
|
||||
```
|
||||
cmake --preset iwyu
|
||||
cmake --build --preset iwyu
|
||||
cmake --workflow --preset iwyu
|
||||
```
|
||||
- There's also a make target that automatically fixes the suggestions from
|
||||
IWYU:
|
||||
|
||||
Reference in New Issue
Block a user