From 572e78c2f9227fd0595ed9a36a41a1a2bccab1ad Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 9 Jun 2006 21:31:53 +0000 Subject: [PATCH] After telling GCC to type of the input file with -x asm/-x c, switch back to -x none, to not foul up autodetection of .a file or .dylibs. llvm-svn: 28741 --- llvm/tools/bugpoint/ToolRunner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp index 37f080ab9c18..7a90efe21087 100644 --- a/llvm/tools/bugpoint/ToolRunner.cpp +++ b/llvm/tools/bugpoint/ToolRunner.cpp @@ -405,6 +405,8 @@ int GCC::ExecuteProgram(const std::string &ProgramFile, #endif } GCCArgs.push_back(ProgramFile.c_str()); // Specify the input filename... + GCCArgs.push_back("-x"); + GCCArgs.push_back("none"); GCCArgs.push_back("-o"); sys::Path OutputBinary (ProgramFile+".gcc.exe"); OutputBinary.makeUnique();