forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1353810 - add a --enable-rust-debug option; r=chmanchester
For people working on Rust code, compiling in debug mode (Cargo's "dev" profile) is convenient: debug assertions are turned on, optimization is turned off, and parallel compilation inside of rustc itself can be used. These things make the build faster and the debugging experience more pleasant. To obtain that currently, one needs to --enable-debug at the Gecko toplevel, which turns on debug assertions for the entire browser, which makes things run unreasonably slowly. So it would be desirable to be able to turn *off* debug mode for the entirety of the browser, but turn on debug mode for the Rust code only. Hence this added switch, --enable-rust-debug, which does what it suggests and defaults to the value of --enable-debug. For our own sanity and because we judge it a non-existent use case, we do not support --enable-debug --disable-rust-debug.
- Loading branch information
Showing
5 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters