Skip to content

Commit

Permalink
[rust] support rosetta triple (#3073)
Browse files Browse the repository at this point in the history
* [rust] support rosetta triple

* Update WORKSPACE
  • Loading branch information
mikea authored Nov 6, 2024
1 parent 456c9bc commit 5f107eb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,12 @@ rules_rust_dependencies()

rust_register_toolchains(
edition = "2021",
# Add support macOS cross-compilation, the overhead for this is limited with only a few more
# targets being generated for the extra triple as part of the toolchain. Setting this explicitly
# also avoids registering support for the wasm32-unknown-unknown and wasm32-wasi targets, which
# are otherwise added by default.
extra_target_triples = ["x86_64-apple-darwin"],
extra_target_triples = [
# Add support for macOS cross-compilation
"x86_64-apple-darwin",
# Add support for macOS rosetta
"aarch64-unknown-linux-gnu",
],
versions = ["1.82.0"], # LLVM 19
)

Expand Down

0 comments on commit 5f107eb

Please sign in to comment.