@@ -97,16 +97,30 @@ cmake -B build/$PIXI_ENVIRONMENT_NAME/{{ preset }} -G Ninja \
9797"""
9898inputs = [" **/CMakeLists.txt" , " **/*.cmake.in" , " cmake/" ]
9999outputs = [" build/$PIXI_ENVIRONMENT_NAME/{{ preset }}/CMakeCache.txt" ]
100+ description = """
101+ Run the CMake configuration step with a given preset. \
102+ Build folders are stored in `build/` subdirectories.\
103+ """
100104
101105[feature .cmd .tasks .build ]
102106args = [" preset" ]
103107cmd = " cmake --build build/$PIXI_ENVIRONMENT_NAME/{{ preset }} --parallel"
104108depends-on = [{ task = " configure" , args = [" {{ preset }}" ] }]
109+ # No caching configured here since CMake will do it better
110+ description = """
111+ Run the compilation steps in parallel via CMake. \
112+ CMake will detect files that have changed and need rebuilding.\
113+ """
105114
106115[feature .cmd .tasks .test ]
107116args = [{ arg = " preset" , default = " debug-native" }]
108117cmd = " ./build/$PIXI_ENVIRONMENT_NAME/{{ preset }}/test/test_xsimd"
109118depends-on = [{ task = " build" , args = [" {{ preset }}" ] }]
119+ description = """
120+ Run the test suite for the given preset (launch recompilation as needed). \
121+ The preset can be used to test an older micro architecture on a machine (e.g. \
122+ testing SSE4.2 on a AVX2 machine).\
123+ """
110124
111125# A dev feature and environment that contains LSP, formatters etc.
112126[feature .dev .dependencies ]
@@ -128,6 +142,7 @@ lldb = "*"
128142cmd = " find . -name '*.[ch]pp' | xargs clang-format -i"
129143inputs = [" **/*.*pp" ]
130144outputs = [" **/*.*pp" ]
145+ description = " Run clang-format on the codebase."
131146
132147[feature .dev .tasks .init-lsp ]
133148cmd = " ln -sf build/dev/debug-native/compile_commands.json"
@@ -137,9 +152,13 @@ depends-on = [
137152 ], environment = " dev" },
138153]
139154outputs = [" compile_commands.json" ]
155+ description = " Initialize the compilation database for clangd."
156+
157+ [feature .dev .tasks .fmt-taplo ]
158+ cmd = " taplo fmt"
159+ description = " Format the TOML files."
140160
141161[feature .dev .tasks ]
142- fmt-taplo = " taplo fmt"
143162fmt = { depends-on = [" fmt-clang" , " fmt-taplo" ] }
144163
145164[environments ]
0 commit comments