aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorVladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com>2024-09-25 16:19:02 +0200
committerGitHub <noreply@github.com>2024-09-25 16:19:02 +0200
commitaea06684992873f70c5834e2f455f913e5b8d671 (patch)
tree99f561c6495c490bf8012f4f1c65c2250fb69493 /lldb/packages/Python/lldbsuite/test/configuration.py
parente9cb44090ff7b3feda386ca1ee1252ab47c0617e (diff)
downloadllvm-aea06684992873f70c5834e2f455f913e5b8d671.zip
llvm-aea06684992873f70c5834e2f455f913e5b8d671.tar.gz
llvm-aea06684992873f70c5834e2f455f913e5b8d671.tar.bz2
[lldb][test] Use tools from llvm instead of compiler tools (#109961)
In #102185, toolchain detection for API tests has been rewritten in Python. Tools paths for tests there are determined from compiler path. Here tools are taken from `--llvm-tools-dir` dotest.py argument, which by default refers to the LLVM build directory, unless they are explicitly redefined in environment variables. It helps to minimize external dependencies and to maximize the reproducibility of the build.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/configuration.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py
index 27eef04..1bacd74 100644
--- a/lldb/packages/Python/lldbsuite/test/configuration.py
+++ b/lldb/packages/Python/lldbsuite/test/configuration.py
@@ -118,6 +118,9 @@ test_result = None
# same base name.
all_tests = set()
+# Path to LLVM tools to be used by tests.
+llvm_tools_dir = None
+
# LLDB library directory.
lldb_libs_dir = None
lldb_obj_root = None