[test] Correctly include build llvm_shlib_dir in stand-alone builds
authorMichal Gorny <mgorny@gentoo.org>
Tue, 15 Nov 2016 12:54:10 +0000 (12:54 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Tue, 15 Nov 2016 12:54:10 +0000 (12:54 +0000)
commit61c3046408976846f85af67b68bf82a6e8103c61
tree44498a0eb8c62791bf8b0b619a511687bd36f8c5
parent1a7eec68a9b38314f01a8cd795d3eec92d996136
[test] Correctly include build llvm_shlib_dir in stand-alone builds

Add the build llvm_shlib_dir into LD_LIBRARY_PATH before the directory
specified as llvm_libs_dir, in order to fix stand-alone builds
attempting to use installed clang libraries.

In case of stand-alone builds llvm_libs_dir specifies the location of
installed LLVM libraries which can also contain an older version
(previous build) of clang libraries. Therefore, ensure to specify
llvm_shlib_dir (which is always the build tree path) before
the potentially-system llvm_libs_dir.

Differential Revision: https://reviews.llvm.org/D26115

llvm-svn: 286952
clang/test/lit.cfg