rust/build.sh

8 lines
446 B
Bash
Raw Normal View History

2018-06-17 18:05:11 +02:00
cargo build || exit 1
2018-07-24 14:10:53 +02:00
rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so mini_core.rs --crate-name mini_core --crate-type lib -Og &&
rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so -L crate=. example.rs --crate-type lib -Og &&
rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so ./target/libcore/src/libcore/lib.rs --crate-type lib -Og
2018-07-20 13:38:49 +02:00
rm libmini_core.rlib libexample.rlib