Skip to content

Commit

Permalink
Merge pull request #1615 from axodotdev/auditable-xwin
Browse files Browse the repository at this point in the history
feat: enable auditable with xwin
  • Loading branch information
mistydemeo authored Dec 10, 2024
2 parents 3d04d03 + 3fb6d11 commit 49e6359
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cargo-dist/src/build/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,18 @@ pub fn make_build_cargo_target_command(
let mut command = Cmd::new(cargo_cmd, "build your app with Cargo");
if auditable {
command.arg("auditable");
if wrapper.is_some() {
return Err(DistError::CannotDoCargoAuditableAndCrossCompile {
host: host.to_owned(),
target,
});
}
}
match wrapper {
None => {
command.arg("build");
}
Some(CargoBuildWrapper::ZigBuild) => {
if auditable {
return Err(DistError::CannotDoCargoAuditableAndCrossCompile {
host: host.to_owned(),
target,
});
}
command.arg("zigbuild");
}
Some(CargoBuildWrapper::Xwin) => {
Expand Down

0 comments on commit 49e6359

Please sign in to comment.