File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import tempfile
27
27
import socket
28
28
import glob
29
29
import pipes
30
+ from distutils .sysconfig import get_python_lib
30
31
31
32
import lit
32
33
import lit .formats
@@ -1068,3 +1069,10 @@ if os.path.exists(libswiftCore_path):
1068
1069
config .available_features .add ("static_stdlib" )
1069
1070
config .substitutions .append (('%target-static-stdlib-path' , static_stdlib_path ))
1070
1071
lit_config .note ('using static stdlib path: %s' % static_stdlib_path )
1072
+
1073
+ if config .lldb_build_root != "" :
1074
+ config .available_features .add ('lldb' )
1075
+ # Note: using the same approach to locating the lib dir as in
1076
+ # finishSwigPythonLLDB.py in the lldb repo
1077
+ python_lib_dir = get_python_lib (True , False , config .lldb_build_root )
1078
+ config .substitutions .append (('%lldb-python-path' , python_lib_dir ))
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
17
16
18
17
config .llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
19
18
config .llvm_obj_root = "@LLVM_BINARY_DIR@"
@@ -35,6 +34,7 @@ config.android_ndk_path = "@SWIFT_ANDROID_NDK_PATH@"
35
34
config .android_ndk_gcc_version = "@SWIFT_ANDROID_NDK_GCC_VERSION@"
36
35
37
36
config .coverage_mode = "@SWIFT_ANALYZE_CODE_COVERAGE@"
37
+ config .lldb_build_root = "@LLDB_BUILD_DIR@"
38
38
39
39
if "@SWIFT_ASAN_BUILD@" == "TRUE" :
40
40
config .available_features .add ("asan" )
@@ -80,11 +80,6 @@ if "@CMAKE_GENERATOR@" == "Xcode":
80
80
81
81
config .available_features .add ("CMAKE_GENERATOR=@CMAKE_GENERATOR@" )
82
82
83
- if "@LLDB_ENABLE@" == "TRUE" :
84
- config .available_features .add ('lldb' )
85
- python_lib_dir = get_python_lib (True , False , "@LLDB_BUILD_DIR@" )
86
- config .substitutions .append (('%lldb-python-path' , python_lib_dir ))
87
-
88
83
# Let the main config do the real work.
89
84
if config .test_exec_root is None :
90
85
config .test_exec_root = os .path .dirname (os .path .realpath (__file__ ))
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ config.android_ndk_path = "@SWIFT_ANDROID_NDK_PATH@"
32
32
config .android_ndk_gcc_version = "@SWIFT_ANDROID_NDK_GCC_VERSION@"
33
33
34
34
config .coverage_mode = "@SWIFT_ANALYZE_CODE_COVERAGE@"
35
+ config .lldb_build_root = "@LLDB_BUILD_DIR@"
35
36
36
37
if "@SWIFT_ASAN_BUILD@" == "TRUE" :
37
38
config .available_features .add ("asan" )
You can’t perform that action at this time.
0 commit comments