[PATCH] D132437: [lit] Support reading arguments from a file
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 23:32:53 PDT 2022
phosek created this revision.
phosek added reviewers: yln, jdenny.
Herald added a subscriber: delcypher.
Herald added a project: All.
phosek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This allows reading arguments from file using the response file syntax.
We would like to use this in the LLVM build to pass test suites from
subbuilds.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132437
Files:
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",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132437.454706.patch
Type: text/x-patch
Size: 453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220823/048f4597/attachment.bin>
More information about the llvm-commits
mailing list