Skip to content

Commit

Permalink
Support x86_64-unknown-linux-gnu under hermetic_cc_toolchain
Browse files Browse the repository at this point in the history
This fork provides a temporary fix for ziglang/zig#4911,
by making our current Rust builds not generate targets that `zig cc`
doesn't understand.
  • Loading branch information
mattbryant-asana committed Mar 15, 2024
1 parent 77a54a9 commit e989575
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,8 @@ impl Build {
}

cmd.push_cc_arg(format!("--target={}", target).into());
} else if target == "x86_64-unknown-linux-gnu" {
cmd.push_cc_arg("--target=x86_64-linux-gnu".into());
} else {
cmd.push_cc_arg(format!("--target={}", target).into());
}
Expand Down

0 comments on commit e989575

Please sign in to comment.