[llvm] r364673 - [llvm-ar] Document response file support in --help
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 11:48:06 PDT 2019
Author: sbc
Date: Fri Jun 28 11:48:05 2019
New Revision: 364673
URL: http://llvm.org/viewvc/llvm-project?rev=364673&view=rev
Log:
[llvm-ar] Document response file support in --help
Also a test for this.
Differential Revision: https://reviews.llvm.org/D63836
Added:
llvm/trunk/test/tools/llvm-ar/response-file.test
Modified:
llvm/trunk/tools/llvm-ar/llvm-ar.cpp
Added: llvm/trunk/test/tools/llvm-ar/response-file.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-ar/response-file.test?rev=364673&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-ar/response-file.test (added)
+++ llvm/trunk/test/tools/llvm-ar/response-file.test Fri Jun 28 11:48:05 2019
@@ -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
Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=364673&r1=364672&r2=364673&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Fri Jun 28 11:48:05 2019
@@ -78,6 +78,7 @@ OPTIONS:
--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
More information about the llvm-commits
mailing list