MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / cargo

Function cargo

crates/test-programs/artifacts/build.rs:461–470  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459}
460
461fn 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
472fn rustflags() -> &'static str {
473 match option_env!("RUSTFLAGS") {

Callers 2

build_rust_testsMethod · 0.70
build_adapterMethod · 0.70

Calls 2

is_okMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected