Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidM-D committed Feb 23, 2024
1 parent 9f22739 commit 3de8ea1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions integration-tests/src/mpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async fn build_package(
package: &str,
target: Option<&str>,
) -> anyhow::Result<ExitStatus> {
// Do you have direnv installed?
let has_direnv = Command::new("which")
.arg("direnv")
.output()
Expand All @@ -52,8 +53,10 @@ async fn build_package(
.status.success();

let mut cmd = if has_direnv {
// If so use the same compiler you always use
Command::new("direnv exec cargo")
} else {
// Otherwise give up and face the pain of constant recompilation
Command::new("cargo")
};
cmd.arg("build")
Expand Down

0 comments on commit 3de8ea1

Please sign in to comment.