@@ -141,13 +141,13 @@ fn parse_config(args: Vec<String>) -> Config {
141141 . optopt ( "" , "host" , "the host to build for" , "HOST" )
142142 . optopt ( "" , "cdb" , "path to CDB to use for CDB debuginfo tests" , "PATH" )
143143 . optopt ( "" , "gdb" , "path to GDB to use for GDB debuginfo tests" , "PATH" )
144+ . optopt ( "" , "lldb" , "path to LLDB to use for LLDB debuginfo tests" , "PATH" )
144145 . optopt ( "" , "lldb-version" , "the version of LLDB used" , "VERSION STRING" )
145146 . optopt ( "" , "llvm-version" , "the version of LLVM used" , "VERSION STRING" )
146147 . optflag ( "" , "system-llvm" , "is LLVM the system LLVM" )
147148 . optopt ( "" , "android-cross-path" , "Android NDK standalone path" , "PATH" )
148149 . optopt ( "" , "adb-path" , "path to the android debugger" , "PATH" )
149150 . optopt ( "" , "adb-test-dir" , "path to tests for the android debugger" , "PATH" )
150- . optopt ( "" , "lldb-python-dir" , "directory containing LLDB's python module" , "PATH" )
151151 . reqopt ( "" , "cc" , "path to a C compiler" , "PATH" )
152152 . reqopt ( "" , "cxx" , "path to a C++ compiler" , "PATH" )
153153 . reqopt ( "" , "cflags" , "flags for the C compiler" , "FLAGS" )
@@ -264,6 +264,7 @@ fn parse_config(args: Vec<String>) -> Config {
264264 let gdb = debuggers:: discover_gdb ( matches. opt_str ( "gdb" ) , & target, & android_cross_path) ;
265265 let gdb_version = gdb. as_deref ( ) . and_then ( debuggers:: query_gdb_version) ;
266266 // FIXME: `lldb_version` is *derived* from lldb, but it's *not* technically a config!
267+ let lldb = matches. opt_str ( "lldb" ) . map ( Utf8PathBuf :: from) ;
267268 let lldb_version =
268269 matches. opt_str ( "lldb-version" ) . as_deref ( ) . and_then ( debuggers:: extract_lldb_version) ;
269270 let color = match matches. opt_str ( "color" ) . as_deref ( ) {
@@ -435,6 +436,7 @@ fn parse_config(args: Vec<String>) -> Config {
435436 cdb_version,
436437 gdb,
437438 gdb_version,
439+ lldb,
438440 lldb_version,
439441 llvm_version,
440442 system_llvm : matches. opt_present ( "system-llvm" ) ,
@@ -444,7 +446,6 @@ fn parse_config(args: Vec<String>) -> Config {
444446 adb_device_status : opt_str2 ( matches. opt_str ( "target" ) ) . contains ( "android" )
445447 && "(none)" != opt_str2 ( matches. opt_str ( "adb-test-dir" ) )
446448 && !opt_str2 ( matches. opt_str ( "adb-test-dir" ) ) . is_empty ( ) ,
447- lldb_python_dir : matches. opt_str ( "lldb-python-dir" ) ,
448449 verbose : matches. opt_present ( "verbose" ) ,
449450 only_modified : matches. opt_present ( "only-modified" ) ,
450451 color,
0 commit comments