@@ -23,7 +23,6 @@ template("write_lit_cfg") {
23
23
" LLVM_LIT_TOOLS_DIR=" , # Intentionally empty, matches cmake build.
24
24
" LLVM_SOURCE_DIR=" + rebase_path (" //llvm" ),
25
25
" LLVM_TOOLS_DIR=" + rebase_path (" $root_out_dir /bin" ),
26
- " Python3_EXECUTABLE=$python_path " ,
27
26
" LLVM_TARGET_TRIPLE=$llvm_target_triple " ,
28
27
]
29
28
values += invoker .extra_values
@@ -44,7 +43,10 @@ write_lit_cfg("lit_site_cfg") {
44
43
# Fully-qualified instead of relative for LIT_SITE_CFG_IN_HEADER.
45
44
input = " //lldb/test/lit.site.cfg.py.in"
46
45
output = lldb_lit_site_cfg_file
47
- extra_values = [ " LLVM_BUILD_MODE=." ]
46
+ extra_values = [
47
+ " LLVM_BUILD_MODE=." ,
48
+ " Python3_EXECUTABLE=$python_path " ,
49
+ ]
48
50
}
49
51
50
52
write_lit_cfg (" lit_api_site_cfg" ) {
@@ -63,6 +65,7 @@ write_lit_cfg("lit_api_site_cfg") {
63
65
" LLDB_ENABLE_PYTHON=0" ,
64
66
" LLDB_HAS_LIBCXX=False" , # FIXME: support this (?)
65
67
" LLDB_LIBS_DIR=" , # FIXME: for shared builds only (?)
68
+ " LLDB_PYTHON_API_TEST_EXECUTABLE=$python_path " ,
66
69
" LLDB_TEST_ARCH=$current_cpu " ,
67
70
" LLDB_TEST_COMPILER=" + rebase_path (" $root_build_dir /bin/clang" ),
68
71
" LLDB_TEST_BUILD_DIRECTORY=" + rebase_path (" $target_gen_dir /test_build" ),
@@ -131,6 +134,7 @@ write_lit_cfg("lit_shell_site_cfg") {
131
134
" LLDB_USE_SYSTEM_DEBUGSERVER=1" , # XXX port //lldb/tools/debugserver (?)
132
135
" LLVM_HOST_TRIPLE=$llvm_current_triple " ,
133
136
" LLVM_USE_SANITIZER=" ,
137
+ " Python3_EXECUTABLE=$python_path " ,
134
138
]
135
139
136
140
if (llvm_enable_zlib ) {
@@ -155,6 +159,7 @@ write_lit_cfg("lit_unit_site_cfg") {
155
159
extra_values = [
156
160
" LLVM_BUILD_MODE=." ,
157
161
" LLVM_USE_SANITIZER=" ,
162
+ " Python3_EXECUTABLE=$python_path " ,
158
163
]
159
164
}
160
165
0 commit comments