Some of the tests build an executable with llvm-gcc. For this to work, llvm-gcc
authorDuncan Sands <baldrick@free.fr>
Fri, 17 Sep 2010 17:05:27 +0000 (17:05 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 17 Sep 2010 17:05:27 +0000 (17:05 +0000)
needs to find some libraries, which may require searching the directories given
by LIBRARY_PATH on curiously configured systems.  So pass on LIBRARY_PATH.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114186 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestingConfig.py

index 5c1b273948575d7ee6c3dcd42e5b2b2e336a476e..440375a588bbe2f80286b21d1f50b02ae743ff49 100644 (file)
@@ -10,6 +10,7 @@ class TestingConfig:
         if config is None:
             # Set the environment based on the command line arguments.
             environment = {
+                'LIBRARY_PATH' : os.environ.get('LIBRARY_PATH',''),
                 'LD_LIBRARY_PATH' : os.environ.get('LD_LIBRARY_PATH',''),
                 'PATH' : os.pathsep.join(litConfig.path +
                                          [os.environ.get('PATH','')]),