]> git.lizzy.rs Git - rust.git/commitdiff
Update build instructions
authorbjorn3 <bjorn3@users.noreply.github.com>
Sun, 1 Nov 2020 18:51:35 +0000 (19:51 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sun, 1 Nov 2020 18:51:35 +0000 (19:51 +0100)
Readme.md

index 680ff877656b0fe5279188328d09439173159d84..ca380703a7f24bb702425545042c2d0f5dff8db2 100644 (file)
--- a/Readme.md
+++ b/Readme.md
@@ -4,7 +4,7 @@
 
 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.
 
-## Building
+## Building and testing
 
 ```bash
 $ 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
 $ ./test.sh --release
 ```
 
+If you want to only build but not test you should replace the last command with:
+
+```bash
+$ cargo build --release
+$ ./build_sysroot/build_sysroot.sh
+```
+
 ## Usage
 
 rustc_codegen_cranelift can be used as a near-drop-in replacement for `cargo build` or `cargo run` for existing projects.