File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
import os
14
14
import platform
15
15
import sys
16
+ from distutils .sysconfig import get_python_lib
16
17
17
18
config .llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
18
19
config .llvm_obj_root = "@LLVM_BINARY_DIR@"
@@ -81,10 +82,8 @@ config.available_features.add("CMAKE_GENERATOR=@CMAKE_GENERATOR@")
81
82
82
83
if "@LLDB_ENABLE@" == "TRUE" :
83
84
config .available_features .add ('lldb' )
84
- for root , dirs , files in os .walk ("@LLDB_BUILD_DIR@" ):
85
- if root .endswith ("site-packages" ):
86
- config .substitutions .append (('%lldb-python-path' , root ))
87
- break
85
+ python_lib_dir = get_python_lib (True , False , "@LLDB_BUILD_DIR@" )
86
+ config .substitutions .append (('%lldb-python-path' , python_lib_dir ))
88
87
89
88
# Let the main config do the real work.
90
89
if config .test_exec_root is None :
You can’t perform that action at this time.
0 commit comments