Skip to content

Commit

Permalink
Support *-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 28, 2024
1 parent 77a54a9 commit fce9deb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,12 @@ 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 if target == "aarch64-unknown-linux-gnu" {
cmd.push_cc_arg("--target=aarch64-linux-gnu".into());
} else if target == "arm64-unknown-linux-gnu" {
cmd.push_cc_arg("--target=arm64-linux-gnu".into());
} else {
cmd.push_cc_arg(format!("--target={}", target).into());
}
Expand Down

0 comments on commit fce9deb

Please sign in to comment.