File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -370,11 +370,16 @@ impl Build {
370370 . expect ( "failed to read src/version" ) ;
371371 let version = version. trim ( ) ;
372372
373- let bootstrap_out = std:: env:: current_exe ( )
373+ let mut bootstrap_out = std:: env:: current_exe ( )
374374 . expect ( "could not determine path to running process" )
375375 . parent ( )
376376 . unwrap ( )
377377 . to_path_buf ( ) ;
378+ // Since bootstrap is hardlink to deps/bootstrap-*, Solaris can sometimes give
379+ // path with deps/ which is bad and needs to be avoided.
380+ if bootstrap_out. ends_with ( "deps" ) {
381+ bootstrap_out. pop ( ) ;
382+ }
378383 if !bootstrap_out. join ( exe ( "rustc" , config. build ) ) . exists ( ) && !cfg ! ( test) {
379384 // this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
380385 panic ! (
You can’t perform that action at this time.
0 commit comments