[llvm-commits] CVS: llvm/lib/Support/ToolRunner.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 18 16:55:01 PDT 2003
Changes in directory llvm/lib/Support:
ToolRunner.cpp updated: 1.6 -> 1.7
---
Log message:
Without this option, the -run-llc mode does not work with shared objects at
all, making it pointless for use with the code generator debugger. With it,
it works like a charm.
---
Diffs of the changes: (+1 -0)
Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.6 llvm/lib/Support/ToolRunner.cpp:1.7
--- llvm/lib/Support/ToolRunner.cpp:1.6 Tue Oct 14 16:52:52 2003
+++ llvm/lib/Support/ToolRunner.cpp Sat Oct 18 16:54:47 2003
@@ -289,6 +289,7 @@
GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file...
GCCArgs.push_back("-lm"); // Hard-code the math library...
GCCArgs.push_back("-O2"); // Optimize the program a bit...
+ GCCArgs.push_back("-Wl,-R."); // Search this dir for .so files
GCCArgs.push_back(0); // NULL terminator
std::cout << "<gcc>" << std::flush;
More information about the llvm-commits
mailing list