summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-12 00:53:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-12 00:53:34 +0000
commit690b635aa6e12f6b814a3beb82510ae9fdbd9a74 (patch)
treee45c4ed279b52de0c917e8b70ef1b5181f31d4b8
parent83e9e91479542ec08d7a99fb3ed062126fab8a20 (diff)
downloadbcm5719-llvm-690b635aa6e12f6b814a3beb82510ae9fdbd9a74.tar.gz
bcm5719-llvm-690b635aa6e12f6b814a3beb82510ae9fdbd9a74.zip
Also pass -gcc-tool-args when building a shared object.
llvm-svn: 66746
-rw-r--r--llvm/tools/bugpoint/ToolRunner.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp
index 7c669ef92e6..7c368e097ff 100644
--- a/llvm/tools/bugpoint/ToolRunner.cpp
+++ b/llvm/tools/bugpoint/ToolRunner.cpp
@@ -671,8 +671,11 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
std::vector<const char*> GCCArgs;
GCCArgs.push_back(GCCPath.c_str());
-
-
+
+ for (std::vector<std::string>::const_iterator
+ I = gccArgs.begin(), E = gccArgs.end(); I != E; ++I)
+ GCCArgs.push_back(I->c_str());
+
// Compile the C/asm file into a shared object
GCCArgs.push_back("-x");
GCCArgs.push_back(fileType == AsmFile ? "assembler" : "c");
OpenPOWER on IntegriCloud