Skip to content

Instantly share code, notes, and snippets.

@pczarn
Created May 28, 2014 11:46
Show Gist options
  • Save pczarn/5718cd5c32f6195127e3 to your computer and use it in GitHub Desktop.
Save pczarn/5718cd5c32f6195127e3 to your computer and use it in GitHub Desktop.
make CFG_HOST=x86_64-unknown-linux-gnu CFG_BUILD=x86_64-unknown-linux-gnu CFG_TARGET="x86_64-unknown-linux-gnu arm-linux-noeabi" rustc-stage1
make -C "`pwd`/src/compiler-rt" ProjSrcRoot="`pwd`/src/compiler-rt" ProjObjRoot="`pwd`/arm-linux-noeabi/rt/compiler-rt" CC="arm-none-eabi-gcc" AR="arm-none-eabi-ar" RANLIB="arm-none-eabi-ar s" CFLAGS="-Wall -Werror -g -fPIC -D_YUGA_LITTLE_ENDIAN=1 -D_YUGA_BIG_ENDIAN=0 -march=armv6" TargetTriple="arm-linux-noeabi" triple-builtins
cp arm-linux-noeabi/rt/compiler-rt/triple/builtins/libcompiler_rt.a arm-linux-noeabi/rt/
rustc-stage1 --target arm-linux-noeabi -O src/libcore/lib.rs
mkdir -p x86_64-unknown-linux-gnu/stage1/lib/rustlib/arm-linux-noeabi/lib/
mv libcore-c5ed6fb4-0.11.0-pre.rlib x86_64-unknown-linux-gnu/stage1/lib/rustlib/arm-linux-noeabi/lib/libcore-c5ed6fb4-0.11.0-pre.rlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment