Index: test/Other/ResponseFile.ll =================================================================== --- test/Other/ResponseFile.ll (revision 0) +++ test/Other/ResponseFile.ll (revision 0) @@ -0,0 +1,12 @@ +; Test response file with llvm-link +; RUN: i=1; while [[ $i -lt 10 ]]; do echo "define void @foo$i(){ret void}"|llvm-as -o %t.foo$i.bc; i=$((i+1)); done +; RUN: rm -f %t.bar.ll +; RUN: i=1; while [[ $i -lt 10 ]]; do echo "declare void @foo$i(...)" >> %t.bar.ll; i=$((i+1)); done +; RUN: echo "define void @bar() {" >> %t.bar.ll +; RUN: i=1; while [[ $i -lt 10 ]]; do echo "call void (...)* @foo$i()" >> %t.bar.ll; i=$((i+1)); done +; RUN: echo "ret void }" >> %t.bar.ll +; RUN: llvm-as %t.bar.ll -o %t.bar.bc +; RUN: rm -f %t.lnk +; RUN: i=1; while [[ $i -lt 10 ]]; do echo %t.foo$i.bc >> %t.lnk; i=$((i+1)); done +; RUN: echo %t.bar.bc >> %t.lnk +; RUN: llvm-link @%t.lnk -o %t.bc Index: include/llvm/Support/CommandLine.h =================================================================== --- include/llvm/Support/CommandLine.h (revision 164481) +++ include/llvm/Support/CommandLine.h (working copy) @@ -42,7 +42,7 @@ // void ParseCommandLineOptions(int argc, const char * const *argv, const char *Overview = 0, - bool ReadResponseFiles = false); + bool ReadResponseFiles = true); //===----------------------------------------------------------------------===// // ParseEnvironmentOptions - Environment variable option processing alternate