Bug 1066680 (follow-up) - Unbreak |mach dmd|. r=me.
authorNicholas Nethercote <nnethercote@mozilla.com>
Sun, 05 Oct 2014 20:13:09 -0700
changeset 208909 a20031e192ceafbf7ba8ed1aa4d1a80e0d3ec3c3
parent 208908 6dcbdd9e98463da475fd50c71c2f0bfd29de6fb4
child 208910 7fceb8bf84d2a79f7aafdefca064d90bf30f5c41
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersme
bugs1066680
milestone35.0a1
Bug 1066680 (follow-up) - Unbreak |mach dmd|. r=me.
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -929,24 +929,26 @@ class RunDmd(MachCommandBase):
         help=('Command-line arguments to be passed through to the program. '
               'Not specifying a -profile or -P option will result in a '
               'temporary profile being used. If passing -params use a "--" to '
               'indicate the start of params to pass to firefox.'))
     @CommandArgument('--remote', '-r', action='store_true',
         help='Do not pass the -no-remote argument by default.')
     @CommandArgument('--background', '-b', action='store_true',
         help='Do not pass the -foreground argument by default on Mac')
+    @CommandArgument('--noprofile', '-n', action='store_true',
+        help='Do not pass the -profile argument by default.')
     @CommandArgument('--sample-below', default=None, type=str,
         help='The sample size to use, [1..n]. Default is 4093.')
     @CommandArgument('--max-frames', default=None, type=str,
         help='The max number of stack frames to capture in allocation traces, [1..24] Default is 24.')
     @CommandArgument('--show-dump-stats', action='store_true',
         help='Show stats when doing dumps.')
-    def dmd(self, params, remote, background, sample_below, max_frames, show_dump_stats):
-        args = get_run_args(self, params, remote, background)
+    def dmd(self, params, remote, background, noprofile, sample_below, max_frames, show_dump_stats):
+        args = get_run_args(self, params, remote, background, noprofile)
         if not args:
             return 1
 
         lib_dir = os.path.join(self.distdir, 'lib')
         lib_name = self.substs['DLL_PREFIX'] + 'dmd' + self.substs['DLL_SUFFIX']
         dmd_lib = os.path.join(lib_dir, lib_name)
         if not os.path.exists(dmd_lib):
             print("You need to build with |--enable-dmd| to use dmd.")