[test] Extend llvm_shlib_dir fix to unittests
authorMichal Gorny <mgorny@gentoo.org>
Thu, 15 Dec 2016 20:31:08 +0000 (20:31 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Thu, 15 Dec 2016 20:31:08 +0000 (20:31 +0000)
commit391f221df68cdb3ba0a2d2ab5f9d71204f77ceea
tree78bb21958c34afe0b6242afa65a16f1cd113b392
parent603679849d78a9340424902f32610bb2d2436f67
[test] Extend llvm_shlib_dir fix to unittests

Extend the fix from rL286952 to unittests. The fix added clang built
library directories (via llvm_shlib_dir) to LD_LIBRARY_PATH.
The previous logic has used llvm_libs_dir only which points to installed
LLVM when doing stand-alone builds.

The patch also removes the redundant win32 code that is no longer
necessary now that shlibdir is used unconditionally.

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

llvm-svn: 289865
clang/test/Unit/lit.cfg