Skip to content

Commit 9410b58

Browse files
committed
Update build instructions
1 parent 1ea618a commit 9410b58

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
The goal of this project is to create an alternative codegen backend for the rust compiler based on [Cranelift](https://github.com/bytecodealliance/wasmtime/blob/master/cranelift). This has the potential to improve compilation times in debug mode. If your project doesn't use any of the things listed under "Not yet supported", it should work fine. If not please open an issue.
66

7-
## Building
7+
## Building and testing
88

99
```bash
1010
$ git clone https://github.com/bjorn3/rustc_codegen_cranelift.git
@@ -13,6 +13,13 @@ $ ./prepare.sh # download and patch sysroot src and install hyperfine for benchm
1313
$ ./test.sh --release
1414
```
1515

16+
If you want to only build but not test you should replace the last command with:
17+
18+
```bash
19+
$ cargo build --release
20+
$ ./build_sysroot/build_sysroot.sh
21+
```
22+
1623
## Usage
1724

1825
rustc_codegen_cranelift can be used as a near-drop-in replacement for `cargo build` or `cargo run` for existing projects.

0 commit comments

Comments
 (0)