aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
commitaff3c77ac2595ba74d38991da420e1ce7960776b (patch)
treec908c5a95cc2759df260e5c7a97d19649c4c88b0 /tools
parentbef77ec085fc507bb2bf6c3c4584717ae659e354 (diff)
downloadexternal_llvm-aff3c77ac2595ba74d38991da420e1ce7960776b.zip
external_llvm-aff3c77ac2595ba74d38991da420e1ce7960776b.tar.gz
external_llvm-aff3c77ac2595ba74d38991da420e1ce7960776b.tar.bz2
Add the directory specified by LLVM_LIB_SEARCH_PATH to the list of
directories to be searched during linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvmc/llvmc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/llvmc/llvmc.cpp b/tools/llvmc/llvmc.cpp
index 49e3fd9..8c5102a 100644
--- a/tools/llvmc/llvmc.cpp
+++ b/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);