forked from OSchip/llvm-project
Add the directory specified by LLVM_LIB_SEARCH_PATH to the list of
directories to be searched during linking. llvm-svn: 16041
This commit is contained in:
parent
f20d76d71e
commit
3aac4f7d88
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue