[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Apr 21 14:54:00 PDT 2003


Changes in directory llvm/tools/gccld:

gccld.cpp updated: 1.27 -> 1.28

---
Log message:

Add support for allowing the user to extend the GCCLD searchpath


---
Diffs of the changes:

Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.27 llvm/tools/gccld/gccld.cpp:1.28
--- llvm/tools/gccld/gccld.cpp:1.27	Sat Apr 19 18:07:33 2003
+++ llvm/tools/gccld/gccld.cpp	Mon Apr 21 14:53:24 2003
@@ -294,6 +294,10 @@
   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)





More information about the llvm-commits mailing list