mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
Add --dev option to mach build
Require either --dev or --release, unless a default build.mode is set in .servobuild. Fixes #5933.
This commit is contained in:
parent
b3b9deafa7
commit
c98d55fe28
4 changed files with 24 additions and 4 deletions
|
@ -74,15 +74,18 @@ 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.
|
||||
|
||||
``` sh
|
||||
git clone https://github.com/servo/servo
|
||||
cd servo
|
||||
./mach build
|
||||
./mach build --dev
|
||||
./mach run tests/html/about-mozilla.html
|
||||
```
|
||||
|
||||
By default, Servo builds in debug mode. This is useful for development, but
|
||||
the resulting binary is very slow. For benchmarking, performance testing, or
|
||||
For benchmarking, performance testing, or
|
||||
real-world use, add the `--release` flag to create an optimized build:
|
||||
|
||||
``` sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue