mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fixes 4037. Enable backtrace on run cmd.
This commit is contained in:
parent
e38e20da65
commit
45a4236fb0
1 changed files with 3 additions and 1 deletions
|
@ -26,8 +26,10 @@ class MachCommands(CommandBase):
|
||||||
'params', default=None, nargs='...',
|
'params', default=None, nargs='...',
|
||||||
help="Command-line arguments to be passed through to Servo")
|
help="Command-line arguments to be passed through to Servo")
|
||||||
def run(self, params):
|
def run(self, params):
|
||||||
|
env = self.build_env()
|
||||||
|
env["RUST_BACKTRACE"] = "1"
|
||||||
subprocess.check_call([path.join("target", "servo")] + params,
|
subprocess.check_call([path.join("target", "servo")] + params,
|
||||||
env=self.build_env())
|
env=env)
|
||||||
|
|
||||||
@Command('doc',
|
@Command('doc',
|
||||||
description='Generate documentation',
|
description='Generate documentation',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue