[clang-tools-extra] [clangd] Respect llvm_shlib_dir in tests
authorMichał Górny <mgorny@gentoo.org>
Mon, 3 Oct 2022 07:59:34 +0000 (09:59 +0200)
committerTobias Hieta <tobias@hieta.se>
Mon, 10 Oct 2022 06:48:56 +0000 (08:48 +0200)
commitc0748fe6dec5927bb343c2bb25741fc5d0d280a2
tree17c93cfd72914eea0d4dc77465e64334a322fd74
parent4bd3f3759259548e159aeba5c76efb9a0864e6fa
[clang-tools-extra] [clangd] Respect llvm_shlib_dir in tests

Add llvm_shlib_dir to variables used in clangd test suite, consistently
to how it is used in the test suites of clang, clang-tools-extra
and a few other components.  This is necessary to ensure that
the correct shared libraries are used when building clang standalone --
otherwise, use_clang() sets LD_LIBRARY_PATH to the directory containing
the earlier system installation of clang rather than the just-built
library.

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

(cherry picked from commit 77945a344c3dee3f9735744c8d4151ef2cec6a8d)
clang-tools-extra/clangd/test/lit.site.cfg.py.in