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:
Jinank Jain 2015-05-06 15:33:28 +02:00 committed by Matt Brubeck
parent b3b9deafa7
commit c98d55fe28
4 changed files with 24 additions and 4 deletions

View file

@ -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