summaryrefslogtreecommitdiffstats
path: root/clang/test/Unit/lit.cfg.py
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2019-03-29 23:33:04 +0000
committerHubert Tong <hubert.reinterpretcast@gmail.com>2019-03-29 23:33:04 +0000
commit5dc6a732e6eb0ea5d37626759e595dac23a477fd (patch)
treee8a768677c02ccfa797f64082ecaaca131489dce /clang/test/Unit/lit.cfg.py
parent24168852e8b52b0e11294e606f86f4dde195eee7 (diff)
downloadbcm5719-llvm-5dc6a732e6eb0ea5d37626759e595dac23a477fd.tar.gz
bcm5719-llvm-5dc6a732e6eb0ea5d37626759e595dac23a477fd.zip
[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 llvm-svn: 357334
Diffstat (limited to 'clang/test/Unit/lit.cfg.py')
-rw-r--r--clang/test/Unit/lit.cfg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Unit/lit.cfg.py b/clang/test/Unit/lit.cfg.py
index 342b6928ece..a6e906b3a87 100644
--- a/clang/test/Unit/lit.cfg.py
+++ b/clang/test/Unit/lit.cfg.py
@@ -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
OpenPOWER on IntegriCloud