mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Issue #3804 : Allow enabling debug-mozjs from servobuild config
This commit is contained in:
parent
bb7621f5dc
commit
8eb4844174
3 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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", "")
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue