@@ -11,7 +11,7 @@ The Cranelift codegen backend is distributed in nightly builds on Linux, macOS a
1111install it using Rustup, you can do that by running:
1212
1313``` bash
14- $ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
14+ rustup component add rustc-codegen-cranelift-preview --toolchain nightly
1515```
1616
1717Once 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
4747If you want to build the backend manually, you can download it from GitHub and build it yourself:
4848
4949```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
5353```
5454
5555To run the test suite replace the last command with:
5656
5757``` 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
6060```
6161
6262For 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
9090In the directory with your project (where you can do the usual ` cargo build ` ), run:
9191
9292``` bash
93- $ $ cg_clif_dir /dist/cargo-clif build
93+ $cg_clif_dir /dist/cargo-clif build
9494```
9595
9696This will build your project with rustc_codegen_cranelift instead of the usual LLVM backend.
0 commit comments