about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-11-01 19:51:35 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-11-01 19:51:35 +0100
commit9410b5820a6a54dc0d13138173bf6a67387146b2 (patch)
treee703ad115aba6b248aad106e166bbc6cdcb2ee20
parent1ea618a7b68bc434d4ff8514fbb6edf483efe9e9 (diff)
downloadrust-9410b5820a6a54dc0d13138173bf6a67387146b2.tar.gz
rust-9410b5820a6a54dc0d13138173bf6a67387146b2.zip
Update build instructions
-rw-r--r--Readme.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/Readme.md b/Readme.md
index 680ff877656..ca380703a7f 100644
--- 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.