[llvm] r374432 - [lit] Bring back `--threads` option alias

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 12:43:57 PDT 2019


Author: yln
Date: Thu Oct 10 12:43:57 2019
New Revision: 374432

URL: http://llvm.org/viewvc/llvm-project?rev=374432&view=rev
Log:
[lit] Bring back `--threads` option alias

Bring back `--threads` option which was lost in the move of the
command line argument parsing code to cl_arguments.py.  Update docs
since `--workers` is preferred.

Modified:
    llvm/trunk/docs/CommandGuide/lit.rst
    llvm/trunk/utils/lit/lit/cl_arguments.py

Modified: llvm/trunk/docs/CommandGuide/lit.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandGuide/lit.rst?rev=374432&r1=374431&r2=374432&view=diff
==============================================================================
--- llvm/trunk/docs/CommandGuide/lit.rst (original)
+++ llvm/trunk/docs/CommandGuide/lit.rst Thu Oct 10 12:43:57 2019
@@ -53,7 +53,7 @@ GENERAL OPTIONS
 
  Show the :program:`lit` help message.
 
-.. option:: -j N, --threads=N
+.. option:: -j N, --workers=N
 
  Run ``N`` tests in parallel.  By default, this is automatically chosen to
  match the number of detected available CPUs.

Modified: llvm/trunk/utils/lit/lit/cl_arguments.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/cl_arguments.py?rev=374432&r1=374431&r2=374432&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/cl_arguments.py (original)
+++ llvm/trunk/utils/lit/lit/cl_arguments.py Thu Oct 10 12:43:57 2019
@@ -16,7 +16,7 @@ def parse_args():
             help="Show version and exit",
             action="store_true",
             default=False)
-    parser.add_argument("-j", "--workers",
+    parser.add_argument("-j", "--threads", "--workers",
             dest="numWorkers",
             metavar="N",
             help="Number of workers used for testing",




More information about the llvm-commits mailing list