[llvm-commits] CVS: llvm/tools/llvmc/llvmc.cpp
Reid Spencer
reid at x10sys.com
Tue Aug 24 15:53:23 PDT 2004
Changes in directory llvm/tools/llvmc:
llvmc.cpp updated: 1.9 -> 1.10
---
Log message:
Add the directory specified by LLVM_LIB_SEARCH_PATH to the list of
directories to be searched during linking.
---
Diffs of the changes: (+6 -0)
Index: llvm/tools/llvmc/llvmc.cpp
diff -u llvm/tools/llvmc/llvmc.cpp:1.9 llvm/tools/llvmc/llvmc.cpp:1.10
--- llvm/tools/llvmc/llvmc.cpp:1.9 Tue Aug 24 12:54:26 2004
+++ llvm/tools/llvmc/llvmc.cpp Tue Aug 24 17:53:13 2004
@@ -228,6 +228,12 @@
// Construct the CompilerDriver object
CompilerDriver CD(Provider);
+ // If the LLVM_LIB_SEARCH_PATH environment variable is
+ // set, append it to the list of places to search for libraries
+ std::string srchPath = getenv("LLVM_LIB_SEARCH_PATH");
+ if (!srchPath.empty())
+ LibPaths.push_back(srchPath);
+
// Configure the driver based on options
CD.setVerbose(Verbose);
CD.setDebug(Debug);
More information about the llvm-commits
mailing list