Skip to content

Commit

Permalink
build.rs: Use the same cargo binary
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Jun 25, 2021
1 parent 69b63d2 commit 6d4a61e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hermit-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn build_hermit(src_dir: &Path, target_dir_opt: Option<&Path>) {
);
let target = TargetInfo::new().expect("Could not get target info");
let profile = env::var("PROFILE").expect("PROFILE was not set");
let mut cmd = Command::new("cargo");
let mut cmd = Command::new(env!("CARGO"));

cmd.env("CARGO_TERM_COLOR", "always");

Expand Down Expand Up @@ -203,7 +203,7 @@ fn build() {
let src_dir = out_dir.join("rusty-hermit");

if !src_dir.as_path().exists() {
let status = Command::new("cargo")
let status = Command::new(env!("CARGO"))
.current_dir(out_dir)
.arg("download")
.arg("--output")
Expand Down

0 comments on commit 6d4a61e

Please sign in to comment.