[PATCH] D132437: [lit] Support reading arguments from a file

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 00:33:52 PDT 2022


phosek updated this revision to Diff 455091.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132437/new/

https://reviews.llvm.org/D132437

Files:
  llvm/docs/CommandGuide/lit.rst
  llvm/utils/lit/lit/cl_arguments.py


Index: llvm/utils/lit/lit/cl_arguments.py
===================================================================
--- llvm/utils/lit/lit/cl_arguments.py
+++ llvm/utils/lit/lit/cl_arguments.py
@@ -16,7 +16,7 @@
 
 
 def parse_args():
-    parser = argparse.ArgumentParser(prog='lit')
+    parser = argparse.ArgumentParser(prog='lit', fromfile_prefix_chars='@')
     parser.add_argument('test_paths',
             nargs='+',
             metavar="TEST_PATH",
Index: llvm/docs/CommandGuide/lit.rst
===================================================================
--- llvm/docs/CommandGuide/lit.rst
+++ llvm/docs/CommandGuide/lit.rst
@@ -43,6 +43,9 @@
 supplementing or overriding the command-line options supplied to :program:`lit`
 by ``check`` targets defined by a project's build system.
 
+:program:`lit` can also read options from response files which are specified as
+inputs using the ``@path/to/file.rsp`` syntax.
+
 Users interested in the :program:`lit` architecture or designing a
 :program:`lit` testing implementation should see :ref:`lit-infrastructure`.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132437.455091.patch
Type: text/x-patch
Size: 1067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/aaffb50d/attachment.bin>


More information about the llvm-commits mailing list