[PATCH] D47500: [WebAssembly] Add support for response file parsing
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 29 20:56:10 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL333499: [WebAssembly] Add support for response file parsing (authored by sbc, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D47500
Files:
lld/trunk/test/wasm/responsefile.test
lld/trunk/wasm/Driver.cpp
Index: lld/trunk/test/wasm/responsefile.test
===================================================================
--- lld/trunk/test/wasm/responsefile.test
+++ lld/trunk/test/wasm/responsefile.test
@@ -0,0 +1,10 @@
+RUN: llc -filetype=obj -o %t.o %p/Inputs/ret32.ll
+
+RUN: echo "%t.o -o %t.wasm -e ret32" > %t.rsp
+RUN: wasm-ld @%t.rsp --initial-memory=655360
+RUN: llvm-readobj --sections %t.wasm | FileCheck %s
+CHECK: InitialPages: 10
+
+RUN: echo "blah\foo" > %t.rsp
+RUN: not wasm-ld @%t.rsp 2>&1 | FileCheck --check-prefix=ESCAPE %s
+ESCAPE: error: cannot open blahfoo: No such file or directory
Index: lld/trunk/wasm/Driver.cpp
===================================================================
--- lld/trunk/wasm/Driver.cpp
+++ lld/trunk/wasm/Driver.cpp
@@ -142,6 +142,10 @@
unsigned MissingIndex;
unsigned MissingCount;
+
+ // Expand response files (arguments in the form of @<filename>)
+ cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Vec);
+
opt::InputArgList Args = this->ParseArgs(Vec, MissingIndex, MissingCount);
handleColorDiagnostics(Args);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47500.149034.patch
Type: text/x-patch
Size: 1090 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180530/8720ed95/attachment.bin>
More information about the llvm-commits
mailing list