Skip to content

Commit

Permalink
made some progress with do_env_test() xwin/zigbuild checks
Browse files Browse the repository at this point in the history
  • Loading branch information
duckinator committed Dec 16, 2024
1 parent 4d8e0f3 commit 8308e0d
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions cargo-dist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,24 @@ pub fn do_env_test(cfg: &Config) -> DistResult<()> {
.iter()
.chain(dist.global_build_steps.iter())
{
// TODO: Figure out where to get host, target from?
//let wrapper = tasks::build_wrapper_for_cross(host, target)?;

/*
match wrapper {
Some(CargoBuildWrapper::Xwin) => { need_xwin = true; }
Some(CargoBuildWrapper::ZigBuild) => { need_zigbuild = true; }
None => {}
match step {
BuildStep::Cargo(step) => {
println!("step = {:#?}", step);
/*
let host = step.host;
let target = step.target_triple;
// TODO: Figure out where to get host, target from?
let wrapper = tasks::build_wrapper_for_cross(host, target)?;
match wrapper {
Some(CargoBuildWrapper::Xwin) => { need_xwin = true; }
Some(CargoBuildWrapper::ZigBuild) => { need_zigbuild = true; }
None => {}
}
*/
}
_ => {}
}
*/
}

// These are all of the tools we can check for.
Expand Down

0 comments on commit 8308e0d

Please sign in to comment.