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 {
370
370
. expect ( "failed to read src/version" ) ;
371
371
let version = version. trim ( ) ;
372
372
373
- let bootstrap_out = std:: env:: current_exe ( )
373
+ let mut bootstrap_out = std:: env:: current_exe ( )
374
374
. expect ( "could not determine path to running process" )
375
375
. parent ( )
376
376
. unwrap ( )
377
377
. 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
+ }
378
383
if !bootstrap_out. join ( exe ( "rustc" , config. build ) ) . exists ( ) && !cfg ! ( test) {
379
384
// this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
380
385
panic ! (
You can’t perform that action at this time.
0 commit comments