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 @@ -376,11 +376,16 @@ impl Build {
376376 . expect ( "failed to read src/version" ) ;
377377 let version = version. trim ( ) ;
378378
379- let bootstrap_out = std:: env:: current_exe ( )
379+ let mut bootstrap_out = std:: env:: current_exe ( )
380380 . expect ( "could not determine path to running process" )
381381 . parent ( )
382382 . unwrap ( )
383383 . to_path_buf ( ) ;
384+ // Since bootstrap is hardlink to deps/bootstrap-*, Solaris can sometimes give
385+ // path with deps/ which is bad and needs to be avoided.
386+ if bootstrap_out. ends_with ( "deps" ) {
387+ bootstrap_out. pop ( ) ;
388+ }
384389 if !bootstrap_out. join ( exe ( "rustc" , config. build ) ) . exists ( ) && !cfg ! ( test) {
385390 // this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
386391 panic ! (
You can’t perform that action at this time.
0 commit comments