mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 02:17:09 +10: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:
3
Makefile
3
Makefile
@@ -136,8 +136,7 @@ lintlua lintsh lintc check-single-includes generated-sources lintcommit lint for
|
||||
test: functionaltest unittest
|
||||
|
||||
iwyu: build/.ran-cmake
|
||||
cmake --preset iwyu
|
||||
cmake --build --preset iwyu > build/iwyu.log
|
||||
cmake --workflow --fresh --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
|
||||
cmake -B build -U ENABLE_IWYU
|
||||
|
||||
|
||||
Reference in New Issue
Block a user