[PATCH] D138510: [lit][AIX] Add LIBPATH to pass through env vars

David Tenty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 10:14:23 PST 2022


daltenty created this revision.
daltenty added reviewers: anhtuyen, hubert.reinterpretcast.
Herald added a subscriber: delcypher.
Herald added a project: All.
daltenty requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

AIX uses LIBPATH to specify the library search path in addition to LD_LIBRARY_PATH, and a lot of user / tooling will uses it preferentially. In lit we currently pass through `LD_LIBRARY_PATH` but not `LIBPATH` in the env on AIX, this patch corrects this inconsistency.


https://reviews.llvm.org/D138510

Files:
  llvm/utils/lit/lit/TestingConfig.py


Index: llvm/utils/lit/lit/TestingConfig.py
===================================================================
--- llvm/utils/lit/lit/TestingConfig.py
+++ llvm/utils/lit/lit/TestingConfig.py
@@ -63,7 +63,9 @@
             'DFLTCC',
         ]
 
-        if sys.platform == 'win32':
+        if sys.platform.startswith('aix'):
+            pass_vars += ['LIBPATH']
+        elif sys.platform == 'win32':
             pass_vars += [
                 'COMSPEC',
                 'INCLUDE',


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138510.477243.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221122/bd2e8baa/attachment.bin>


More information about the llvm-commits mailing list