dalton_c
dalton_c

Reputation: 7171

How to build for tier 3 target not included in `rustup target list`?

I would like to build my Rust library for the aarch64-apple-ios-sim target. This target is considered a Tier 3 target and does not appear in my list of available targets when I run rustup target list on either of the latest stable or nightly toolchains. I have tried running rustup target add aarch64-apple-ios-sim on the off chance that it's just a "hidden" target or something, but that did not work. What is the correct way to install a tier 3 target?

Upvotes: 4

Views: 2273

Answers (1)

Ivan Sorokin
Ivan Sorokin

Reputation: 351

You can do the following:

  • rustup +nightly component add rust-src
  • cargo +nightly build -Z build-std --target aarch64-apple-ios-sim

Here you can find more info: https://doc.rust-lang.org/nightly/rustc/platform-support/aarch64-apple-ios-sim.html#building-rust-programs

Upvotes: 7

Related Questions