From 5f133a2b2721009afcafebbd0316ae645e288d3a Mon Sep 17 00:00:00 2001 From: EriKWDev Date: Wed, 24 Sep 2025 23:40:03 +0200 Subject: [PATCH 1/2] Remove $ Consider removing the redundant $:s that needs to be removed when copying commands --- Readme.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Readme.md b/Readme.md index 9989cc7e7..2e5fca1b3 100644 --- a/Readme.md +++ b/Readme.md @@ -11,7 +11,7 @@ The Cranelift codegen backend is distributed in nightly builds on Linux, macOS a install it using Rustup, you can do that by running: ```bash -$ rustup component add rustc-codegen-cranelift-preview --toolchain nightly +rustup component add rustc-codegen-cranelift-preview --toolchain nightly ``` 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 If you want to build the backend manually, you can download it from GitHub and build it yourself: ```bash -$ git clone https://github.com/rust-lang/rustc_codegen_cranelift -$ cd rustc_codegen_cranelift -$ ./y.sh build +git clone https://github.com/rust-lang/rustc_codegen_cranelift +cd rustc_codegen_cranelift +./y.sh build ``` To run the test suite replace the last command with: ```bash -$ ./y.sh prepare # only needs to be run the first time -$ ./test.sh +/y.sh prepare # only needs to be run the first time +./test.sh ``` 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 In the directory with your project (where you can do the usual `cargo build`), run: ```bash -$ $cg_clif_dir/dist/cargo-clif build +$cg_clif_dir/dist/cargo-clif build ``` This will build your project with rustc_codegen_cranelift instead of the usual LLVM backend. From 4533cb44ac023d02da977666d7fc69c89eb34d5f Mon Sep 17 00:00:00 2001 From: EriKWDev Date: Fri, 26 Sep 2025 09:19:01 +0200 Subject: [PATCH 2/2] Update Readme.md Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com> --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 2e5fca1b3..48003ad27 100644 --- a/Readme.md +++ b/Readme.md @@ -55,7 +55,7 @@ cd rustc_codegen_cranelift To run the test suite replace the last command with: ```bash -/y.sh prepare # only needs to be run the first time +./y.sh prepare # only needs to be run the first time ./test.sh ```