Skip to content

Commit

Permalink
test output
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbryant-asana committed Feb 27, 2025
1 parent 8eb9bdc commit fa53898
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2181,6 +2181,8 @@ impl Build {
}
}

eprintln!("HACK MBRYANT {:?}", target);

// Pass `--target` with the LLVM target to configure Clang for cross-compiling.
//
// This is **required** for cross-compilation, as it's the only flag that
Expand All @@ -2206,14 +2208,19 @@ impl Build {
Cow::Owned(
target.versioned_llvm_target(&self.apple_deployment_target(target)),
)
} else if target.vendor == "unknown" && target.os == "linux" && target.abi == "gnu" {
} else if target.vendor == "unknown"
&& target.os == "linux"
&& target.abi == "gnu"
{
// Special case the `<foo>-unknown-linux-gnu` target triple, since Bazel's
// hermetic build system doesn't support these target quads.
match target.arch {
match target.full_arch {
"x86_64" => Cow::Borrowed("x86_64-linux-gnu"),
"aarch64" => Cow::Borrowed("aarch64-linux-gnu"),
"arm64" => Cow::Borrowed("arm64-linux-gnu"),
_ => panic!("Unsupported target triple - please update the cc-rs patch"),
_ => {
panic!("Unsupported target triple - please update the cc-rs patch")
}
}
} else {
Cow::Borrowed(target.llvm_target)
Expand Down

0 comments on commit fa53898

Please sign in to comment.