After telling GCC to type of the input file with -x asm/-x c, switch back to
authorChris Lattner <sabre@nondot.org>
Fri, 9 Jun 2006 21:31:53 +0000 (21:31 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 9 Jun 2006 21:31:53 +0000 (21:31 +0000)
-x none, to not foul up autodetection of .a file or .dylibs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28741 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ToolRunner.cpp

index 37f080ab9c18081c29695828e8b2b5ebee30b0c6..7a90efe210872aaf28a26a738b4c3790eec3b91a 100644 (file)
@@ -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();