aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-19 10:34:45 +0100
committerGitHub <noreply@github.com>2023-01-19 10:34:45 +0100
commit00a976129b603b60f1e309ee7484cb0f4b5a9792 (patch)
treec3eadb4da0bca6bf2f5a3f1a26cb9895bb0a77e2 /Makefile
parent6e3890f4ce002ba308c09166b00e8ee86b6efa03 (diff)
downloadrneovim-00a976129b603b60f1e309ee7484cb0f4b5a9792.tar.gz
rneovim-00a976129b603b60f1e309ee7484cb0f4b5a9792.tar.bz2
rneovim-00a976129b603b60f1e309ee7484cb0f4b5a9792.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 110e9e3760..21308e15e6 100644
--- a/Makefile
+++ b/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