rustc_codegen_cranelift
rustc_codegen_cranelift copied to clipboard
Cranelift based backend for rustc
Following the instructions in the README, everything seemed to be working fine until `./y.rs build`. ``` The MSVC toolchain is not yet supported by rustc_codegen_cranelift. Switch to the MinGW toolchain...
Fixes the issues found in https://github.com/bjorn3/rustc_codegen_cranelift/issues/1193. This still needs testing on CI. cc @EndilWayfare
Both matching the debuginfo to some known output and running gdb/lldb with certain commands and testing the output.
When removing the tests requiring `rand` and adding a `Cargo.toml` to `src/libcore/tests`, running `cargo test` in that directory gives the following failures: ``` ---- checked_mul stdout ---- ---- checked_mul stderr...
I try to avoid unstable features where possible. This option enforces this.
After Cranelift 0.82.0 was released it turned out that there was a small bug introduced that caused rustc bootstrap to fail: https://github.com/bytecodealliance/wasmtime/pull/3906 It would be nice to catch this earlier...
https://github.com/bjorn3/rustc_codegen_cranelift/blob/ab425a4bca1d6df234596a1621c4cabcc73bb272/Cargo.toml#L21 It will break the build if for whatever reason this commit/repo is gone in the future. I could make it a git subtree, but I don't know if git...
I only ran the `debug` benchmarks, as `check` should be identical and `release` will definitively be faster because of much less optimizations by cg_clif. Except for some stress-tests the `clean`...
* [ ] debug mode build (Linux only) * [ ] lld (Linux only) * [ ] `CG_CLIF_FUNCTION_SECTIONS=1` `-Zfunction-sections=yes` (Linux and macOS) * [x] bootstrap rustc (#1105) * [x] run...