diff options
author | Fedor Sergeev <fedor.sergeev@azul.com> | 2017-11-27 13:33:19 +0000 |
---|---|---|
committer | Fedor Sergeev <fedor.sergeev@azul.com> | 2017-11-27 13:33:19 +0000 |
commit | 2dfdfa28840c4ab5960fa31f4e16102f39a485ae (patch) | |
tree | ee6a30ab06a2291f4aa2702ef93714ae8cbafac1 /clang | |
parent | ad21f2687dcca2199a5b2bd9b7f04486008ece16 (diff) | |
download | bcm5719-llvm-2dfdfa28840c4ab5960fa31f4e16102f39a485ae.tar.gz bcm5719-llvm-2dfdfa28840c4ab5960fa31f4e16102f39a485ae.zip |
[lit] Set shlibpath_var on Solaris
Summary:
During make check-all on Solaris, lit complains
llvm-lit: /vol/gcc/src/llvm/llvm/dist/tools/clang/test/Unit/lit.cfg.py:57: warning: unable to inject shared library path on 'SunOS'
The following patch avoids this: Solaris uses LD_LIBRARY_PATH like several other targets.
In theory, one could also handle LD_LIBRARY_PATH_{32,64} which take precedence over
LD_LIBRARY_PATH if set, but let's cross that bridge when we get there.
Patch by Rainer Orth.
Reviewers: rsmith, lichray
Reviewed By: lichray
Differential Revision: https://reviews.llvm.org/D39640
llvm-svn: 319026
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/Unit/lit.cfg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Unit/lit.cfg.py b/clang/test/Unit/lit.cfg.py index f4bcdd76d17..342b6928ece 100644 --- a/clang/test/Unit/lit.cfg.py +++ b/clang/test/Unit/lit.cfg.py @@ -36,7 +36,7 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']: config.environment[symbolizer] = os.environ[symbolizer] def find_shlibpath_var(): - if platform.system() in ['Linux', 'FreeBSD', 'NetBSD']: + if platform.system() in ['Linux', 'FreeBSD', 'NetBSD', 'SunOS']: yield 'LD_LIBRARY_PATH' elif platform.system() == 'Darwin': yield 'DYLD_LIBRARY_PATH' |