Fix run-make-support to respect per-stage cargo

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-09-23 07:54:05 +00:00 committed by 许杰友 Jieyou Xu (Joe)
parent 705ab171a4
commit 53897921bd

View File

@ -1,7 +1,8 @@
use crate::command::Command;
use crate::env_var;
/// Returns a command that can be used to invoke Cargo.
/// Returns a command that can be used to invoke cargo. The cargo is provided by compiletest
/// through the `CARGO` env var.
pub fn cargo() -> Command {
Command::new(env_var("BOOTSTRAP_CARGO"))
Command::new(env_var("CARGO"))
}