From 2edc54edede4b069326a2d1957d3bf8d9eaa9b08 Mon Sep 17 00:00:00 2001 From: David Tenty Date: Fri, 18 Nov 2022 18:33:12 -0500 Subject: [PATCH] [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 --- llvm/utils/lit/lit/TestingConfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py index 6363872..c86f27e 100644 --- a/llvm/utils/lit/lit/TestingConfig.py +++ b/llvm/utils/lit/lit/TestingConfig.py @@ -63,7 +63,9 @@ class TestingConfig(object): 'DFLTCC', ] - if sys.platform == 'win32': + if sys.platform.startswith('aix'): + pass_vars += ['LIBPATH'] + elif sys.platform == 'win32': pass_vars += [ 'COMSPEC', 'INCLUDE', -- 2.7.4