mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-08 13:55:25 +00:00
8 lines
446 B
Bash
Executable File
8 lines
446 B
Bash
Executable File
cargo build || exit 1
|
|
|
|
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
|
|
|
|
rm libmini_core.rlib libexample.rlib
|