]> granicus.if.org Git - clang/commitdiff
[lit] Set shlibpath_var on Solaris
authorFedor Sergeev <fedor.sergeev@azul.com>
Mon, 27 Nov 2017 13:33:19 +0000 (13:33 +0000)
committerFedor Sergeev <fedor.sergeev@azul.com>
Mon, 27 Nov 2017 13:33:19 +0000 (13:33 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319026 91177308-0d34-0410-b5e6-96231b3b80d8

test/Unit/lit.cfg.py

index f4bcdd76d17fb9a9124450c5b2016118b19d8ffc..342b6928eceaf473a41488d434298bfe2d274465 100644 (file)
@@ -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'