cargo-multivers icon indicating copy to clipboard operation
cargo-multivers copied to clipboard

Add a friendly error message when rustc --print target-cpus is not supported

Open ronnychevalier opened this issue 3 years ago • 0 comments

Depending on how rustc was built, rustc --print target-cpus can return an error ("Target CPU help is not supported by this LLVM version.").

See https://github.com/rust-lang/rust/blob/ee6533d7408f1447c028025c883a34c904d25ba4/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp#L365 and https://github.com/rust-lang/rust/issues/104785

We should catch this error and print a friendly error message to the user.

ronnychevalier avatar Mar 04 '23 17:03 ronnychevalier