mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01: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"]
|
opts += ["-v"]
|
||||||
|
|
||||||
features = []
|
features = []
|
||||||
if debug_mozjs:
|
if debug_mozjs or self.config["build"]["debug-mozjs"]:
|
||||||
features += ["script/debugmozjs"]
|
features += ["script/debugmozjs"]
|
||||||
|
|
||||||
if features:
|
if features:
|
||||||
|
|
|
@ -79,6 +79,8 @@ class CommandBase(object):
|
||||||
self.config.setdefault("build", {})
|
self.config.setdefault("build", {})
|
||||||
self.config["build"].setdefault("android", False)
|
self.config["build"].setdefault("android", False)
|
||||||
|
|
||||||
|
self.config["build"].setdefault("debug-mozjs", False)
|
||||||
|
|
||||||
self.config.setdefault("android", {})
|
self.config.setdefault("android", {})
|
||||||
self.config["android"].setdefault("sdk", "")
|
self.config["android"].setdefault("sdk", "")
|
||||||
self.config["android"].setdefault("ndk", "")
|
self.config["android"].setdefault("ndk", "")
|
||||||
|
|
|
@ -12,6 +12,8 @@ cargo-root = "/path/to/cargo"
|
||||||
[build]
|
[build]
|
||||||
# Set "android = true" or use `mach build --android` to build the Android app.
|
# Set "android = true" or use `mach build --android` to build the Android app.
|
||||||
android = false
|
android = false
|
||||||
|
# Set "debug-mozjs" or use `mach build --debug-mozjs` to build a debug spidermonkey.
|
||||||
|
debug-mozjs = false
|
||||||
|
|
||||||
# Android information
|
# Android information
|
||||||
[android]
|
[android]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue