From 45a4236fb039087445461b5aa6bcce644894d6c5 Mon Sep 17 00:00:00 2001 From: nwin Date: Sun, 23 Nov 2014 10:51:46 +0100 Subject: [PATCH] Fixes 4037. Enable backtrace on run cmd. --- python/servo/post_build_commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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',