r357334 - [lit] Set shlibpath_var on AIX
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 29 16:33:04 PDT 2019
Author: hubert.reinterpretcast
Date: Fri Mar 29 16:33:04 2019
New Revision: 357334
URL: http://llvm.org/viewvc/llvm-project?rev=357334&view=rev
Log:
[lit] Set shlibpath_var on AIX
Summary:
When building the `check-all` target on AIX, lit produces
```
warning: unable to inject shared library path on 'AIX'
```
This patch addresses this. `LIBPATH` is the environment variable of
interest on AIX. Newer versions of AIX may consider `LD_LIBRARY_PATH`,
but only when `LIBPATH` is unset.
Reviewers: xingxue, jasonliu, sfertile, serge-sans-paille
Reviewed By: xingxue
Subscribers: jsji, cfe-commits, llvm-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D59741
Modified:
cfe/trunk/test/Unit/lit.cfg.py
Modified: cfe/trunk/test/Unit/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Unit/lit.cfg.py?rev=357334&r1=357333&r2=357334&view=diff
==============================================================================
--- cfe/trunk/test/Unit/lit.cfg.py (original)
+++ cfe/trunk/test/Unit/lit.cfg.py Fri Mar 29 16:33:04 2019
@@ -42,6 +42,8 @@ def find_shlibpath_var():
yield 'DYLD_LIBRARY_PATH'
elif platform.system() == 'Windows':
yield 'PATH'
+ elif platform.system() == 'AIX':
+ yield 'LIBPATH'
for shlibpath_var in find_shlibpath_var():
# in stand-alone builds, shlibdir is clang's build tree
More information about the cfe-commits
mailing list