File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1992,6 +1992,17 @@ impl Step for Lldb {
1992
1992
fn run ( self , builder : & Builder ) -> Option < PathBuf > {
1993
1993
let target = self . target ;
1994
1994
1995
+ // Do nothing if lldb was not built. This is difficult to
1996
+ // determine in should_run because the target is not available
1997
+ // at that point.
1998
+ let bindir = builder
1999
+ . llvm_out ( target)
2000
+ . join ( "bin" ) ;
2001
+ let lldb_exe = bindir. join ( exe ( "lldb" , & target) ) ;
2002
+ if !lldb_exe. exists ( ) {
2003
+ return None ;
2004
+ }
2005
+
1995
2006
builder. info ( & format ! ( "Dist Lldb ({})" , target) ) ;
1996
2007
let src = builder. src . join ( "src/lldb" ) ;
1997
2008
let name = pkgname ( builder, "lldb" ) ;
@@ -2001,9 +2012,6 @@ impl Step for Lldb {
2001
2012
drop ( fs:: remove_dir_all ( & image) ) ;
2002
2013
2003
2014
// Prepare the image directory
2004
- let bindir = builder
2005
- . llvm_out ( target)
2006
- . join ( "bin" ) ;
2007
2015
let dst = image. join ( "bin" ) ;
2008
2016
t ! ( fs:: create_dir_all( & dst) ) ;
2009
2017
for program in & [ "lldb" , "lldb-argdumper" , "lldb-mi" , "lldb-server" ] {
You can’t perform that action at this time.
0 commit comments