[llvm-commits] CVS: llvm/lib/Support/PluginLoader.cpp ToolRunner.cpp
John Criswell
criswell at cs.uiuc.edu
Mon Jan 26 15:00:05 PST 2004
Changes in directory llvm/lib/Support:
PluginLoader.cpp updated: 1.8 -> 1.9
ToolRunner.cpp updated: 1.13 -> 1.14
---
Log message:
Fixes for PR214. Use the SHLIBEXT variable instead of hardcoding .so into
every file.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Support/PluginLoader.cpp
diff -u llvm/lib/Support/PluginLoader.cpp:1.8 llvm/lib/Support/PluginLoader.cpp:1.9
--- llvm/lib/Support/PluginLoader.cpp:1.8 Sun Dec 14 15:35:53 2003
+++ llvm/lib/Support/PluginLoader.cpp Mon Jan 26 14:59:33 2004
@@ -37,5 +37,5 @@
// This causes operator= above to be invoked for every -load option.
static cl::opt<PluginLoader, false, cl::parser<std::string> >
-LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin.so"),
+LoadOpt("load", cl::ZeroOrMore, cl::value_desc("plugin" SHLIBEXT),
cl::desc("Load the specified plugin"));
Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.13 llvm/lib/Support/ToolRunner.cpp:1.14
--- llvm/lib/Support/ToolRunner.cpp:1.13 Sun Dec 14 15:35:53 2003
+++ llvm/lib/Support/ToolRunner.cpp Mon Jan 26 14:59:33 2004
@@ -337,7 +337,7 @@
int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
std::string &OutputFile) {
- OutputFile = getUniqueFilename(InputFile+".so");
+ OutputFile = getUniqueFilename(InputFile+SHLIBEXT);
// Compile the C/asm file into a shared object
const char* GCCArgs[] = {
GCCPath.c_str(),
More information about the llvm-commits
mailing list