diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-24 22:53:13 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-24 22:53:13 +0000 |
commit | 3aac4f7d880294fe422992655400e1bf90ee4aa4 (patch) | |
tree | 0be81616b0e5e3e43c29ace8c10eacfcc9574e76 /llvm/tools/llvmc/llvmc.cpp | |
parent | f20d76d71e64e26c5cac4ee218c4b59787f8ca99 (diff) | |
download | bcm5719-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.cpp | 6 |
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); |