()
| 459 | } |
| 460 | |
| 461 | fn cargo() -> Command { |
| 462 | // Miri configures its own sysroot which we don't want to use, so remove |
| 463 | // miri's own wrappers around rustc to ensure that we're using the real |
| 464 | // rustc to build these programs. |
| 465 | let mut cargo = Command::new("cargo"); |
| 466 | if std::env::var("CARGO_CFG_MIRI").is_ok() { |
| 467 | cargo.env_remove("RUSTC").env_remove("RUSTC_WRAPPER"); |
| 468 | } |
| 469 | cargo |
| 470 | } |
| 471 | |
| 472 | fn rustflags() -> &'static str { |
| 473 | match option_env!("RUSTFLAGS") { |
no test coverage detected