diff options
-rw-r--r-- | llvm/test/tools/llvm-ar/response-file.test | 9 | ||||
-rw-r--r-- | llvm/tools/llvm-ar/llvm-ar.cpp | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-ar/response-file.test b/llvm/test/tools/llvm-ar/response-file.test new file mode 100644 index 00000000000..9e248d6b1c7 --- /dev/null +++ b/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 diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index ea6d0410a63..91746d0fab3 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -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 |