-
Notifications
You must be signed in to change notification settings - Fork 437
change cargo-miri.rs to fix issue #978 #980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -333,10 +333,11 @@ path = "lib.rs" | |
| None => true, | ||
| Some(target) => target == rustc_version::version_meta().unwrap().host, | ||
| }; | ||
| let sysroot = if is_host { dir.join("HOST") } else { PathBuf::from(dir) }; | ||
| let sysroot = if is_host { dir.join("HOST") } else { PathBuf::from(dir) }; | ||
|
|
||
| std::env::set_var("MIRI_SYSROOT", &sysroot); // pass the env var to the processes we spawn, which will turn it into "--sysroot" flags | ||
| if print_env { | ||
| println!("MIRI_SYSROOT={}", sysroot.display()); | ||
| println!("MIRI_SYSROOT={:?}", &sysroot); // for Windows users, prints path with backslashes escaped. | ||
|
||
| } else if !ask_user { | ||
| println!("A libstd for Miri is now available in `{}`.", sysroot.display()); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.