summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc/llvmc.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-08-24 22:53:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-08-24 22:53:13 +0000
commit3aac4f7d880294fe422992655400e1bf90ee4aa4 (patch)
tree0be81616b0e5e3e43c29ace8c10eacfcc9574e76 /llvm/tools/llvmc/llvmc.cpp
parentf20d76d71e64e26c5cac4ee218c4b59787f8ca99 (diff)
downloadbcm5719-llvm-3aac4f7d880294fe422992655400e1bf90ee4aa4.tar.gz
bcm5719-llvm-3aac4f7d880294fe422992655400e1bf90ee4aa4.zip
Add the directory specified by LLVM_LIB_SEARCH_PATH to the list of
directories to be searched during linking. llvm-svn: 16041
Diffstat (limited to 'llvm/tools/llvmc/llvmc.cpp')
-rw-r--r--llvm/tools/llvmc/llvmc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/llvmc/llvmc.cpp b/llvm/tools/llvmc/llvmc.cpp
index 49e3fd90fde..8c5102a0c4a 100644
--- a/llvm/tools/llvmc/llvmc.cpp
+++ b/llvm/tools/llvmc/llvmc.cpp
@@ -228,6 +228,12 @@ int main(int argc, char **argv) {
// 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);
OpenPOWER on IntegriCloud