@@ -11,7 +11,7 @@ The Cranelift codegen backend is distributed in nightly builds on Linux, macOS a
11
11
install it using Rustup, you can do that by running:
12
12
13
13
``` bash
14
- $ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
14
+ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
15
15
```
16
16
17
17
Once it is installed, you can enable it with one of the following approaches:
@@ -47,16 +47,16 @@ If you want to use `cargo clif build` instead of having to specify the full path
47
47
If you want to build the backend manually, you can download it from GitHub and build it yourself:
48
48
49
49
```bash
50
- $ git clone https://github.com/rust-lang/rustc_codegen_cranelift
51
- $ cd rustc_codegen_cranelift
52
- $ ./y.sh build
50
+ git clone https://github.com/rust-lang/rustc_codegen_cranelift
51
+ cd rustc_codegen_cranelift
52
+ ./y.sh build
53
53
```
54
54
55
55
To run the test suite replace the last command with:
56
56
57
57
``` bash
58
- $ ./y.sh prepare # only needs to be run the first time
59
- $ ./test.sh
58
+ ./y.sh prepare # only needs to be run the first time
59
+ ./test.sh
60
60
```
61
61
62
62
For more docs on how to build and test see [ build_system/usage.txt] ( build_system/usage.txt ) or the help message of ` ./y.sh ` .
@@ -90,7 +90,7 @@ Assuming `$cg_clif_dir` is the directory you cloned this repo into and you follo
90
90
In the directory with your project (where you can do the usual ` cargo build ` ), run:
91
91
92
92
``` bash
93
- $ $ cg_clif_dir /dist/cargo-clif build
93
+ $cg_clif_dir /dist/cargo-clif build
94
94
```
95
95
96
96
This will build your project with rustc_codegen_cranelift instead of the usual LLVM backend.
0 commit comments