run_make_support/external_deps/
cargo.rs

1use crate::command::Command;
2use crate::env_var;
3use crate::util::set_host_compiler_dylib_path;
4
5/// Returns a command that can be used to invoke cargo. The cargo is provided by compiletest
6/// through the `CARGO` env var.
7pub fn cargo() -> Command {
8    let mut cmd = Command::new(env_var("CARGO"));
9    set_host_compiler_dylib_path(&mut cmd);
10    cmd
11}