Skip to content

Commit 23e27f1

Browse files
authored
Add Rustup installation instructions to README
Now that cranelift is distributed with Rustup, I find myself constantly searching for the rust-lang/rust#81746 PR. I think that it would be useful to also describe the Rustup installation/usage instructions here in README.
1 parent 82487a9 commit 23e27f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Readme.md

+10
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ This has the potential to improve compilation times in debug mode.
55
If your project doesn't use any of the things listed under "Not yet supported", it should work fine.
66
If not please open an issue.
77

8+
## Download and usage using Rustup
9+
The Cranelift codegen backend is now distributed in nightly builds on Linux. If you want to
10+
install it using Rustup, you can do that by running:
11+
12+
```bash
13+
$ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
14+
```
15+
16+
Once it is installed, you can pass `RUSTFLAGS="-Zcodegen-backend=cranelift"` when running `cargo +nightly build` to use the Cranelift backend.
17+
818
## Building and testing
919

1020
```bash

0 commit comments

Comments
 (0)