[llvm] 2edc54e - [lit][AIX] Add LIBPATH to pass through env vars
David Tenty via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 14:25:26 PST 2022
Author: David Tenty
Date: 2022-11-22T17:22:52-05:00
New Revision: 2edc54edede4b069326a2d1957d3bf8d9eaa9b08
URL: https://github.com/llvm/llvm-project/commit/2edc54edede4b069326a2d1957d3bf8d9eaa9b08
DIFF: https://github.com/llvm/llvm-project/commit/2edc54edede4b069326a2d1957d3bf8d9eaa9b08.diff
LOG: [lit][AIX] Add LIBPATH to pass through env vars
AIX uses LIBPATH to specify the library search path in addition to
LD_LIBRARY_PATH, and a lot of users / tooling will use it
preferentially. In lit we currently pass through LD_LIBRARY_PATH but not
LIBPATH in the env on AIX, this patch corrects this inconsistency.
Differential Revision: https://reviews.llvm.org/D138510
Added:
Modified:
llvm/utils/lit/lit/TestingConfig.py
Removed:
################################################################################
diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index 63638725f140c..c86f27e88b0ec 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -63,7 +63,9 @@ def fromdefaults(litConfig):
'DFLTCC',
]
- if sys.platform == 'win32':
+ if sys.platform.startswith('aix'):
+ pass_vars += ['LIBPATH']
+ elif sys.platform == 'win32':
pass_vars += [
'COMSPEC',
'INCLUDE',
More information about the llvm-commits
mailing list