Building a Rust cross compiler that can target arm isn't too hard. You just need the right toolchain installed. I personally use Debian with the gcc-4.7-arm-linux-gnueabi package from the Emdebian repo. (I believe Ubuntu and other distros have similar packages). From there it's just a simple matter of passing the right triple to the configure script.
./configure --target=arm-unknown-linux-gnueabi && make That'll build a rustc that can target arm as well as all the libraries. Then you can run it like so: rustc --target=arm-unknown-linux-gnueabi --linker=arm-linux-gnueabi-gcc hello.rs That'll give you a binary, hello, which will run on arm/linux. So, that's the basic gist of it. Cross compiling rustc itself is a bit more annoying right now. You basically need to cross compile LLVM, libsyntax, librustc & rustc. As for Servo, I know they cross compile to android so there seems to be at least some level of support in terms of cross compilation. In any case, if you have any more question feel free to ping me on IRC (my nick is just Luqman). On Thu, Feb 6, 2014 at 11:30 AM, Edit Balint <[email protected]>wrote: > Dear Rust Developers! > > My name is Edit Balint, I'm a software developer at University of Szeged, > Hungary. > We have a research project regarding Servo and Rust. > Our main goal is to cross-compile and run Rust and Servo on ARM Linux (not > Android). > We have several issues with the cross-compiling procedure. Is there any > guide how to achieve this? > > Any help would be appreciated. > > Best regards: > Edit Balint > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
