mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
538b35a4ee
- Bug 1147951, part 2 - Remove unused JAVASCRIPT definition from nsJSEnvironment.cpp. r=baku (607909217) - Bug 1147951, part 1 - Remove uses of JAVASCRIPT2 from Console.cpp. r=baku (46cde7cfa) - pointer style (5504c22d4) - Bug 1165384 - Add a typedef for the statistics phase table; r=sfink (484a24237) - Bug 1165385 - Remove the rarely used !fullFormat mode of MOZ_GCTIMER; r=sfink (ab8b17eb1) - Bug 1165390 - Make the detailed statistics formatting methods have consistent names; r=sfink (55c5db543) - Bug 1165410 - Reimplement GC statistics JSON output formatter; r=sfink (04c13c874) - Bug 1166789 - Cleanup javascript.options.mem.log formatting; r=sfink, r=mccr8 (f23b455b4) - Bug 1171451 - Use the correct type for the argv argument to NS_CreateJSArgv and the nsJSArgArray constructor; r=jst (edfa21a59) - Bug 886459, part 1 - Remove unused includes of nsIJSRuntimeService.h. r=bholley (bbc277ac1) - Bug 886459, part 2 - Remove context callbacks from XPCJSRuntime. r=bholley (2c3c8515a) - Bug 886459, part 3 - Remove simple uses of nsIJSRuntimeService to get the JSRuntime. r=bholley (ff5bfe304) - pointer style (2ea264afd) - Bug 1169457 - Add null check in OnWrapperDestroy. r=jimm (741739513) - Bug 886459, part 4 - Remove nsIJSRuntimeService. r=bholley,aklotz (61563f53b) - Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium (a9fcb3b3f) - Bug 1176642 - Defer import of autotry and pprint; r=chmanchester (de40855cb) - Bug 1178772 - Add check_macroassembler_style.py: Verify that each MacroAssembler declaration maps to all its definitions. r=h4writer (fd406593a) - Bug 1152556 - Add moz.build bugzilla metadata in dom/media. r=kinetik (fa2ffa121) - Bug 1152556 - Add moz.build bugzilla metadata in dom/media webrtc. r=abr (d208b839a) - re-enable peerconnection (42e8c412b) - Bug 1152538 - Enable WebRTC identity, r=jesup (13a47adcb) - Bug 1231123 - Simplify LaunchApp on BSDs by dropping fork/exec version. r=jld (c35e6e36f) - bug 1171120 - Fix mtransport+signalling to build on iOS. r=ekr (7034b20ab) - Bug 1150609 Patch 1 WebRTC SDP - add tmmbr to offer. r=jesup (52ca72d09) - Bug 1150609 Patch 2 - WebRTC enable tmmbr r=jesup (d59c6adb9) - Bug 1150609 Patch 3 - WebRTC enable tmmbr unittest changes. r=jesup (eeffed826) - Bug 1087161 - Upgrading B2G toolchain to gcc-4.9 (851194ca0)
88 lines
2.7 KiB
Python
88 lines
2.7 KiB
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
# This modules provides functionality for dealing with code completion.
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import os
|
|
|
|
from mach.decorators import (
|
|
CommandArgument,
|
|
CommandProvider,
|
|
Command,
|
|
)
|
|
|
|
from mozbuild.base import MachCommandBase
|
|
|
|
@CommandProvider
|
|
class Introspection(MachCommandBase):
|
|
"""Instropection commands."""
|
|
|
|
@Command('compileflags', category='devenv',
|
|
description='Display the compilation flags for a given source file')
|
|
@CommandArgument('what', default=None,
|
|
help='Source file to display compilation flags for')
|
|
def compileflags(self, what):
|
|
from mozbuild.util import resolve_target_to_make
|
|
import shlex
|
|
|
|
top_make = os.path.join(self.topobjdir, 'Makefile')
|
|
if not os.path.exists(top_make):
|
|
print('Your tree has not been built yet. Please run '
|
|
'|mach build| with no arguments.')
|
|
return 1
|
|
|
|
path_arg = self._wrap_path_argument(what)
|
|
|
|
make_dir, make_target = resolve_target_to_make(self.topobjdir,
|
|
path_arg.relpath())
|
|
|
|
if make_dir is None and make_target is None:
|
|
return 1
|
|
|
|
build_vars = {}
|
|
|
|
def on_line(line):
|
|
elements = [s.strip() for s in line.split('=', 1)]
|
|
|
|
if len(elements) != 2:
|
|
return
|
|
|
|
build_vars[elements[0]] = elements[1]
|
|
|
|
try:
|
|
old_logger = self.log_manager.replace_terminal_handler(None)
|
|
self._run_make(directory=make_dir, target='showbuild', log=False,
|
|
print_directory=False, allow_parallel=False, silent=True,
|
|
line_handler=on_line)
|
|
finally:
|
|
self.log_manager.replace_terminal_handler(old_logger)
|
|
|
|
if what.endswith('.c'):
|
|
name = 'COMPILE_CFLAGS'
|
|
else:
|
|
name = 'COMPILE_CXXFLAGS'
|
|
|
|
if name not in build_vars:
|
|
return
|
|
|
|
flags = ['-isystem', '-I', '-include', '-MF']
|
|
new_args = []
|
|
path = os.path.join(self.topobjdir, make_dir)
|
|
for arg in shlex.split(build_vars[name]):
|
|
if new_args and new_args[-1] in flags:
|
|
arg = os.path.normpath(os.path.join(path, arg))
|
|
else:
|
|
flag = [(f, arg[len(f):]) for f in flags + ['--sysroot=']
|
|
if arg.startswith(f)]
|
|
if flag:
|
|
flag, val = flag[0]
|
|
if val:
|
|
arg = flag + os.path.normpath(os.path.join(path, val))
|
|
new_args.append(arg)
|
|
|
|
print(' '.join(new_args))
|
|
|