summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-09 21:31:53 +0000
committerChris Lattner <sabre@nondot.org>2006-06-09 21:31:53 +0000
commit629e48768abd320107eae8e23d5af1e38d4c0fbe (patch)
tree2e5df07a014df4cbf53ecac23e92a75a36f0b03b /tools
parent2fafaf1b01bbcb8a5db2f6ded07fb840115ca5d9 (diff)
downloadllvm-629e48768abd320107eae8e23d5af1e38d4c0fbe.tar.gz
llvm-629e48768abd320107eae8e23d5af1e38d4c0fbe.tar.bz2
llvm-629e48768abd320107eae8e23d5af1e38d4c0fbe.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/ToolRunner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp
index 37f080ab9c..7a90efe210 100644
--- a/tools/bugpoint/ToolRunner.cpp
+++ b/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();