1 # Work in progress cranelift codegen backend for rust
3 > ⚠⚠⚠ This doesn't do anything useful yet ⚠⚠⚠
8 $ git clone https://github.com/bjorn3/rustc_codegen_cranelift.git
9 $ cd rustc_codegen_cranelift
10 $ git submodule update --init
17 $ rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so my_crate.rs --crate-type lib -Og
20 > You must compile with `-Og`, because checked binops are not yet supported.
25 $ git clone https://github.com/rust-lang/rust.git
27 $ git apply ../0001-Disable-stdsimd-in-libcore.patch
28 $ git apply ../0002-Disable-u128-and-i128-in-libcore.patch
33 > ⚠⚠⚠ You will get a panic because of unimplemented stuff ⚠⚠⚠
41 * [ ] Building libraries
42 * [ ] Other call abi's