mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
revert: "build: enable cmake workflow presets (#21860)"
This reverts commit 00a976129b
.
Visual Studio fails the build if the CMakePresets.json version is too
high and the CMakePresets.json integration is enabled.
Closes https://github.com/neovim/neovim/issues/22608.
This commit is contained in:
parent
b55b8ddf81
commit
829d92eca3
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": 6,
|
"version": 3,
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "base",
|
"name": "base",
|
||||||
@ -94,20 +94,5 @@
|
|||||||
"name": "iwyu",
|
"name": "iwyu",
|
||||||
"configurePreset": "iwyu"
|
"configurePreset": "iwyu"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"workflowPresets": [
|
|
||||||
{
|
|
||||||
"name": "iwyu",
|
|
||||||
"steps": [
|
|
||||||
{
|
|
||||||
"type": "configure",
|
|
||||||
"name": "iwyu"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "build",
|
|
||||||
"name": "iwyu"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -253,7 +253,8 @@ For managing includes in C files, use [include-what-you-use].
|
|||||||
- [Install include-what-you-use][include-what-you-use-install]
|
- [Install include-what-you-use][include-what-you-use-install]
|
||||||
- To see which includes needs fixing use the cmake preset `iwyu`:
|
- To see which includes needs fixing use the cmake preset `iwyu`:
|
||||||
```
|
```
|
||||||
cmake --workflow --preset iwyu
|
cmake --preset iwyu
|
||||||
|
cmake --build --preset iwyu
|
||||||
```
|
```
|
||||||
- There's also a make target that automatically fixes the suggestions from
|
- There's also a make target that automatically fixes the suggestions from
|
||||||
IWYU:
|
IWYU:
|
||||||
|
3
Makefile
3
Makefile
@ -137,7 +137,8 @@ generated-sources benchmark uninstall $(FORMAT) $(LINT) $(TEST): | build/.ran-cm
|
|||||||
test: $(TEST)
|
test: $(TEST)
|
||||||
|
|
||||||
iwyu: build/.ran-cmake
|
iwyu: build/.ran-cmake
|
||||||
cmake --workflow --fresh --preset iwyu > build/iwyu.log
|
cmake --preset iwyu
|
||||||
|
cmake --build --preset iwyu > build/iwyu.log
|
||||||
iwyu-fix-includes --only_re="src/nvim" --ignore_re="src/nvim/(auto|map.h|eval/encode.c)" --safe_headers < build/iwyu.log
|
iwyu-fix-includes --only_re="src/nvim" --ignore_re="src/nvim/(auto|map.h|eval/encode.c)" --safe_headers < build/iwyu.log
|
||||||
cmake -B build -U ENABLE_IWYU
|
cmake -B build -U ENABLE_IWYU
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user