Bug 1381353 - Set RUST_BACKTRACE=1 during `mach run`; r=ted
authorGregory Szorc <gps@mozilla.com>
Mon, 17 Jul 2017 13:57:50 -0700
changeset 417992 242989927622ef557614c2cce320ff82aed43b45
parent 417991 a84e140e9929826e82d27fff6c828c6b94a8822f
child 417993 113bdc4b5ab6987ea4f8205a4eae4d085a4107f9
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1381353
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1381353 - Set RUST_BACKTRACE=1 during `mach run`; r=ted Having Rust dump a stack on panic seems like a useful on-by-default feature. MozReview-Commit-ID: ABYTArsMTFh
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1321,16 +1321,17 @@ class RunProgram(MachCommandBase):
                 if not os.path.isdir(path):
                     os.makedirs(path)
                 args.append('-profile')
                 args.append(path)
 
         extra_env = {
             'MOZ_DEVELOPER_REPO_DIR': self.topsrcdir,
             'MOZ_DEVELOPER_OBJ_DIR': self.topobjdir,
+            'RUST_BACKTRACE': '1',
         }
 
         if not enable_crash_reporter:
             extra_env['MOZ_CRASHREPORTER_DISABLE'] = '1'
         else:
             extra_env['MOZ_CRASHREPORTER'] = '1'
 
         if disable_e10s: