From e0857b3c25df85a1c8dbe9dbd565ea7a7b0c4293 Mon Sep 17 00:00:00 2001 From: Charles Zablit Date: Tue, 19 Aug 2025 18:41:53 +0100 Subject: [PATCH] [lldb] make lit use the same PYTHONHOME for building and running the API tests --- lldb/test/API/lit.cfg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index e16b7dfe3197d..5e864850ac1a2 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -371,6 +371,7 @@ def delete_module_cache(path): # Some steps required to initialize the tests dynamically link with python.dll # and need to know the location of the Python libraries. This ensures that we # use the same version of Python that was used to build lldb to run our tests. +config.environment["PYTHONHOME"] = config.python_root_dir config.environment["PATH"] = os.path.pathsep.join( (config.python_root_dir, config.environment.get("PATH", "")) )