warn when cargo miri setup does not do anything

This commit is contained in:
Ralf Jung 2019-04-19 19:27:19 +02:00
parent f26c2cb4eb
commit 2481d6091a

View file

@ -172,6 +172,9 @@ fn ask(question: &str) {
/// done all this already.
fn setup(ask_user: bool) {
if std::env::var("MIRI_SYSROOT").is_ok() {
if !ask_user {
println!("WARNING: MIRI_SYSROOT already set, not doing anything.")
}
return;
}