rust/build.sh

13 lines
311 B
Bash
Raw Normal View History

2018-06-17 18:05:11 +02:00
cargo build || exit 1
cd examples/
2018-07-20 13:38:49 +02:00
RUSTC="rustc -Zcodegen-backend=$(pwd)/../target/debug/librustc_codegen_cranelift.so -L crate=. --crate-type lib"
$RUSTC mini_core.rs --crate-name mini_core &&
$RUSTC example.rs &&
$RUSTC mini_core_hello_world.rs &&
$RUSTC ../target/libcore/src/libcore/lib.rs &&
rm *.rlib