[PATCH] D63836: [llvm-ar] Document response file support in --help
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 11:44:04 PDT 2019
sbc100 updated this revision to Diff 207119.
sbc100 added a comment.
- revert part
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63836/new/
https://reviews.llvm.org/D63836
Files:
llvm/test/tools/llvm-ar/response-file.test
llvm/tools/llvm-ar/llvm-ar.cpp
Index: llvm/tools/llvm-ar/llvm-ar.cpp
===================================================================
--- llvm/tools/llvm-ar/llvm-ar.cpp
+++ llvm/tools/llvm-ar/llvm-ar.cpp
@@ -78,6 +78,7 @@
--plugin=<string> - Ignored for compatibility
--help - Display available options
--version - Display the version of this program
+ @<file> - read options from <file>
OPERATIONS:
d - delete [files] from the archive
Index: llvm/test/tools/llvm-ar/response-file.test
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-ar/response-file.test
@@ -0,0 +1,9 @@
+RUN: touch %t-a.txt %t-b.txt %t-c.txt
+RUN: echo "rcs %t.a %t-a.txt %t-b.txt %t-c.txt" > %t-response
+RUN: rm -f %t.a
+RUN: llvm-ar @%t-response
+RUN: llvm-ar t %t.a | FileCheck %s
+
+CHECK: a.txt
+CHECK-NEXT: b.txt
+CHECK-NEXT: c.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63836.207119.patch
Type: text/x-patch
Size: 905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190628/88aa8706/attachment.bin>
More information about the llvm-commits
mailing list