Issue #3804 : Allow enabling debug-mozjs from servobuild config

This commit is contained in:
Fabrice Desré 2014-11-06 22:47:02 -08:00
parent bb7621f5dc
commit 8eb4844174
3 changed files with 5 additions and 1 deletions

View file

@ -56,7 +56,7 @@ class MachCommands(CommandBase):
opts += ["-v"]
features = []
if debug_mozjs:
if debug_mozjs or self.config["build"]["debug-mozjs"]:
features += ["script/debugmozjs"]
if features:

View file

@ -79,6 +79,8 @@ class CommandBase(object):
self.config.setdefault("build", {})
self.config["build"].setdefault("android", False)
self.config["build"].setdefault("debug-mozjs", False)
self.config.setdefault("android", {})
self.config["android"].setdefault("sdk", "")
self.config["android"].setdefault("ndk", "")

View file

@ -12,6 +12,8 @@ cargo-root = "/path/to/cargo"
[build]
# Set "android = true" or use `mach build --android` to build the Android app.
android = false
# Set "debug-mozjs" or use `mach build --debug-mozjs` to build a debug spidermonkey.
debug-mozjs = false
# Android information
[android]