You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added build instructions for cranelift backend as part of Rust repo
All other instructions assume that user works with separate repository than Rust compiler repository. When one follows default instructions, cranelift codegen tries to use different sys-root and compiler internal crates which leads to compiler errors when building it.
I needed to do all this steps while adding new intrinsic to rustc.
8. You need to prefix every `./y.rs` (or `y` if you built `y.rs`) command by `rustup run stage2` to make cg_clif use your local changes in rustc.
65
+
66
+
*`rustup run stage2 ./y.rs prepare`
67
+
*`rustup run stage2 ./y.rs build`
68
+
* (Optional) run tests: `rustup run stage2 ./y.rs test`
69
+
9. Now you can use your cg_clif build to compile other Rust programs, e.g. you can open any Rust crate and run commands like `$RustCheckoutDir/compiler/rustc_codegen_cranelift/dist/cargo-clif build --release`.
70
+
45
71
## Configuration
46
72
47
73
See the documentation on the `BackendConfig` struct in [config.rs](src/config.rs) for all
0 commit comments