diff options
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 5a7316a9b97..7dd4b3995f5 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -31,11 +31,15 @@ class MachCommands(CommandBase): default=None, action='store_true', help='Build for Android') + @CommandArgument('--debug-mozjs', + default=None, + action='store_true', + help='Enable debug assertions in mozjs') @CommandArgument('--verbose', '-v', action='store_true', help='Print verbose output') def build(self, target=None, release=False, jobs=None, android=None, - verbose=False): + verbose=False, debug_mozjs=False): self.ensure_bootstrapped() if android is None: @@ -51,6 +55,13 @@ class MachCommands(CommandBase): if verbose: opts += ["-v"] + features = [] + if debug_mozjs: + features += ["script/debugmozjs"] + + if features: + opts += ["--features", "%s" % ' '.join(features)] + build_start = time() if android: make_opts = [] |