File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -376,11 +376,16 @@ impl Build {
376
376
. expect ( "failed to read src/version" ) ;
377
377
let version = version. trim ( ) ;
378
378
379
- let bootstrap_out = std:: env:: current_exe ( )
379
+ let mut bootstrap_out = std:: env:: current_exe ( )
380
380
. expect ( "could not determine path to running process" )
381
381
. parent ( )
382
382
. unwrap ( )
383
383
. 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
+ }
384
389
if !bootstrap_out. join ( exe ( "rustc" , config. build ) ) . exists ( ) && !cfg ! ( test) {
385
390
// this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
386
391
panic ! (
You can’t perform that action at this time.
0 commit comments