[llvm] [lit][docs] Mention LIT_OPTS instead of LIT_ARGS (PR #147494)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 07:13:06 PDT 2025


================
@@ -152,15 +152,24 @@ can run the LLVM and Clang tests simultaneously using:
 
     % make check-all
 
-To run the tests with Valgrind (Memcheck by default), use the ``LIT_ARGS`` make
+To run the tests with Valgrind (Memcheck by default), use the ``LIT_OPTS`` make
 variable to pass the required options to lit. For example, you can use:
 
 .. code-block:: bash
 
-    % make check LIT_ARGS="-v --vg --vg-leak"
+    % make check LIT_OPTS="-v --vg --vg-leak"
 
 to enable testing with valgrind and with leak checking enabled.
 
+To skip the evaluation of dependencies when iterating on tests, add suffix /fast
+(automatically generated by cmake) to the make target, i.e.
+
+.. code-block:: bash
+
+    % make check/fast LIT_OPTS="--filter <...>"
----------------
nikic wrote:

This doesn't seem to work with ninja, so I don't think this is terribly useful to document (most people working on LLVM will use ninja). The paragraph directly below shows how you can directly call llvm-lit with a given path, which will of course also avoid building anything.

https://github.com/llvm/llvm-project/pull/147494


More information about the llvm-commits mailing list