From ed73cca711f645f4188e8add331920293f5e37a2 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 (cherry picked from commit e0857b3c25df85a1c8dbe9dbd565ea7a7b0c4293) --- 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 ccbf368879eaa..538640001758e 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -387,6 +387,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", "")) )