Skip to content

Commit 5dc6a73

Browse files
[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
1 parent 2416885 commit 5dc6a73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/Unit/lit.cfg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def find_shlibpath_var():
4242
yield 'DYLD_LIBRARY_PATH'
4343
elif platform.system() == 'Windows':
4444
yield 'PATH'
45+
elif platform.system() == 'AIX':
46+
yield 'LIBPATH'
4547

4648
for shlibpath_var in find_shlibpath_var():
4749
# in stand-alone builds, shlibdir is clang's build tree

0 commit comments

Comments
 (0)