We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3555f3 commit feeb184Copy full SHA for feeb184
src/bootstrap/src/lib.rs
@@ -370,11 +370,16 @@ impl Build {
370
.expect("failed to read src/version");
371
let version = version.trim();
372
373
- let bootstrap_out = std::env::current_exe()
+ let mut bootstrap_out = std::env::current_exe()
374
.expect("could not determine path to running process")
375
.parent()
376
.unwrap()
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
+ }
383
if !bootstrap_out.join(exe("rustc", config.build)).exists() && !cfg!(test) {
384
// this restriction can be lifted whenever https://github.com/rust-lang/rfcs/pull/3028 is implemented
385
panic!(
0 commit comments