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

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 03:25:38 PDT 2025


Author: Remy Farley
Date: 2025-07-22T12:25:34+02:00
New Revision: c14c0a195c11cad1106c0d7457ef2bc83095f5da

URL: https://github.com/llvm/llvm-project/commit/c14c0a195c11cad1106c0d7457ef2bc83095f5da
DIFF: https://github.com/llvm/llvm-project/commit/c14c0a195c11cad1106c0d7457ef2bc83095f5da.diff

LOG: [lit][docs] Mention LIT_OPTS instead of LIT_ARGS (#147494)

Noticed that the current
[docs](https://llvm.org/docs/TestingGuide.html#unit-and-regression-tests)
recommend using LIT_ARGS (config option in cmake script), rather than
LIT_OPTS (environment variable interpreted by lit directly). While
LIT_ARGS doesn't do anything at all when set with make, at least not in
a way outlined in the docs.

Added: 
    

Modified: 
    llvm/docs/TestingGuide.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst
index b6dda6a732405..76b6b4e2cab30 100644
--- a/llvm/docs/TestingGuide.rst
+++ b/llvm/docs/TestingGuide.rst
@@ -152,12 +152,12 @@ 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.
 


        


More information about the llvm-commits mailing list