[lldb] Use the just-built libc++ for testing the LLDB data formatters
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 11 Jul 2022 21:03:53 +0000 (14:03 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 11 Jul 2022 21:49:24 +0000 (14:49 -0700)
commitce233e714665a0499fbd0686226e43130d44ef87
treeb8669aa61dd47ee2f389a68f5b13c9b99f4dc8aa
parentfaa00c131351725d8db74bac6a06459430344455
[lldb] Use the just-built libc++ for testing the LLDB data formatters

Make sure we use the libc++ from the build dir. Currently, by passing
-stdlib=libc++, we might pick up the system libc++. This change ensures
that if LLVM_LIBS_DIR is set, we try to use the libc++ from there.

Differential revision: https://reviews.llvm.org/D129166
lldb/packages/Python/lldbsuite/test/builders/builder.py
lldb/packages/Python/lldbsuite/test/configuration.py
lldb/packages/Python/lldbsuite/test/dotest.py
lldb/packages/Python/lldbsuite/test/dotest_args.py
lldb/test/API/lit.cfg.py
lldb/test/API/lit.site.cfg.py.in
lldb/test/CMakeLists.txt