Add 'mach check' and 'mach check-geckolib'

This commit is contained in:
Simon Sapin 2017-05-13 15:02:47 +02:00
parent d2fa2ae934
commit f693582ba9
2 changed files with 66 additions and 19 deletions

View file

@ -133,7 +133,6 @@ Mach tools to orchestrate the build and other tasks.
### Normal build
To build Servo in development mode. This is useful for development, but
the resulting binary is very slow.
@ -159,6 +158,20 @@ real-world use, add the `--release` flag to create an optimized build:
./mach run --release tests/html/about-mozilla.html
```
### Checking for build errors, without building
If youre making changes to one crate that cause build errors in another crate,
consider this instead of a full build:
```sh
./mach check
```
It will run `cargo check`, which runs the analysis phase of the compiler
(and so shows build errors if any) but skips the code generation phase.
This can be a lot faster than a full build,
though of course it doesnt produce a binary you can run.
### Building for Android target
``` sh