mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Add 'mach check' and 'mach check-geckolib'
This commit is contained in:
parent
d2fa2ae934
commit
f693582ba9
2 changed files with 66 additions and 19 deletions
15
README.md
15
README.md
|
@ -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 you’re 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 doesn’t produce a binary you can run.
|
||||
|
||||
### Building for Android target
|
||||
|
||||
``` sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue