rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.52k stars 94 forks source link

rustc_info: fix for non-rustup unix-based installations #1333

Closed hexagonal-sun closed 1 year ago

hexagonal-sun commented 1 year ago

If the user has installed via a package manager then rustup will not be in the user's path. Call out to 'sh', using the which command to find the location of the various rust tools that are required.

bjorn3 commented 1 year ago

As explained in https://github.com/bjorn3/rustc_codegen_cranelift/issues/1308#issuecomment-1351916857 using a distro provided rust version isn't going to work. cg_clif needs a specific rustc nightly as specified in rust-toolchain. I should probably add a note about this though as you are the second person in two weeks to hit this.

hexagonal-sun commented 1 year ago

Ah, apologies for the noise. I'll close this PR in that case.