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 Aug 22, 2024
1 parent ee14401 commit 3cd7c68
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 @@ -2217,6 +2217,12 @@ impl Build {
)
.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 3cd7c68

Please sign in to comment.