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 $ rustup override set nightly
11 $ git submodule update --init
18 $ rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so my_crate.rs --crate-type lib -Og
24 $ rustup component add rust-src
25 $ ./prepare_libcore.sh
29 > This should stop with `error: aborting due to <...> previous errors`
31 > Please submit a bug if not
51 * cranelift-module api seems to be used wrong, thus causing panic for some consts
52 * cranelift-codegen doesn't have encodings for some instructions for types smaller than I32