aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authornwin <nwin@users.noreply.github.com>2014-11-23 10:51:46 +0100
committernwin <nwin@users.noreply.github.com>2014-11-23 10:51:46 +0100
commit45a4236fb039087445461b5aa6bcce644894d6c5 (patch)
tree8fb81f6fc73d73be2a61c7a90cef3da0a8092d23 /python/servo/post_build_commands.py
parente38e20da6500184df19654abe34322dd3c2fd99b (diff)
downloadservo-45a4236fb039087445461b5aa6bcce644894d6c5.tar.gz
servo-45a4236fb039087445461b5aa6bcce644894d6c5.zip
Fixes 4037. Enable backtrace on run cmd.
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 37a4c4e3c72..10ab699aca4 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -26,8 +26,10 @@ class MachCommands(CommandBase):
'params', default=None, nargs='...',
help="Command-line arguments to be passed through to Servo")
def run(self, params):
+ env = self.build_env()
+ env["RUST_BACKTRACE"] = "1"
subprocess.check_call([path.join("target", "servo")] + params,
- env=self.build_env())
+ env=env)
@Command('doc',
description='Generate documentation',