[llvm-commits] [llvm] r66746 - /llvm/trunk/tools/bugpoint/ToolRunner.cpp

Evan Cheng evan.cheng at apple.com
Wed Mar 11 17:53:34 PDT 2009


Author: evancheng
Date: Wed Mar 11 19:53:34 2009
New Revision: 66746

URL: http://llvm.org/viewvc/llvm-project?rev=66746&view=rev
Log:
Also pass -gcc-tool-args when building a shared object.

Modified:
    llvm/trunk/tools/bugpoint/ToolRunner.cpp

Modified: llvm/trunk/tools/bugpoint/ToolRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=66746&r1=66745&r2=66746&view=diff

==============================================================================
--- llvm/trunk/tools/bugpoint/ToolRunner.cpp (original)
+++ llvm/trunk/tools/bugpoint/ToolRunner.cpp Wed Mar 11 19:53:34 2009
@@ -671,8 +671,11 @@
   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");





More information about the llvm-commits mailing list