[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.
This commit is contained in:
Remy Farley 2025-07-22 10:25:34 +00:00 committed by GitHub
parent 9fc7c6cbd2
commit c14c0a195c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.