Skip to content

Commit

Permalink
Issue servo#3804 : Allow enabling debug-mozjs from servobuild config
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricedesre committed Nov 7, 2014
1 parent bb7621f commit 8eb4844
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/servo/build_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def build(self, target=None, release=False, jobs=None, android=None,
opts += ["-v"]

features = []
if debug_mozjs:
if debug_mozjs or self.config["build"]["debug-mozjs"]:
features += ["script/debugmozjs"]

if features:
Expand Down
2 changes: 2 additions & 0 deletions python/servo/command_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def __init__(self, context):
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", "")
Expand Down
2 changes: 2 additions & 0 deletions servobuild.example
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8eb4844

Please sign in to comment.