Skip to content

Doc building for ios

kud1ing edited this page Jan 15, 2014 · 98 revisions

There are two possible routes to support iOS:

  • either let Rust generate LLVM bitcode and use the from Xcode
  • or try to add crocc-compilation support to Rust.

a) LLVM Bitcode

See https://github.com/shilgapira/ObjCrust

b) Cross-compiler

Compilation currently is not successful, see the open issues.

You need XCode 5.

  1. Build Rust:
mkdir build_ios; cd build_ios
../configure --target=arm-apple-darwin
make VERBOSE=1
  1. Use Rust:
rustc --target=arm-apple-darwin foo.rs

Adjustments

Current adjustments

For the current adjustments:

Possible future adjustments

Resources

All Categories:

Clone this wiki locally