forked from OSchip/llvm-project
Add support for allowing the user to extend the GCCLD searchpath
llvm-svn: 5825
This commit is contained in:
parent
46371cc500
commit
da3bc21076
|
@ -294,6 +294,10 @@ int main(int argc, char **argv) {
|
|||
if (Composite.get() == 0)
|
||||
return PrintAndReturn(argv[0], ErrorMessage);
|
||||
|
||||
// If the user specied an extra search path in their environment, respect it.
|
||||
if (char *SearchPath = getenv("LLVM_LIB_SEARCH_PATH"))
|
||||
LibPaths.push_back(SearchPath);
|
||||
|
||||
for (unsigned i = 1; i < InputFilenames.size(); ++i) {
|
||||
std::auto_ptr<Module> M(LoadObject(InputFilenames[i], ErrorMessage));
|
||||
if (M.get() == 0)
|
||||
|
|
Loading…
Reference in New Issue