diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2015-05-04 10:57:22 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-05-04 10:57:22 -0700 |
commit | a4ccf609b0176ca761ffaa271191a8911cfcfb43 (patch) | |
tree | bd51a604f7ad3d379b5bd776d91286af86dd6151 | |
parent | eefa3eba256d48bc24189417c3bb8d3a9a77d979 (diff) | |
download | servo-a4ccf609b0176ca761ffaa271191a8911cfcfb43.tar.gz servo-a4ccf609b0176ca761ffaa271191a8911cfcfb43.zip |
Add instructions for building with --release
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md index 934236c17f7..335deb449e8 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,15 @@ cd servo ./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 +real-world use, add the `--release` flag to create an optimized build: + +``` sh +./mach build --release +./mach run --release tests/html/about-mozilla.html +``` + ### Building for Android target ``` sh |