bug 386212 - fx-win32-tbox has lost the ability to report finishing nightly builds. r=bsmedberg

This commit is contained in:
ted.mielczarek%gmail.com 2007-06-30 12:57:43 +00:00
Родитель fab6f1c9a2
Коммит acf1273225
2 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -146,10 +146,10 @@ endif
ifeq ($(OS_ARCH),Darwin) ifeq ($(OS_ARCH),Darwin)
# need to pass arch flags for universal builds # need to pass arch flags for universal builds
ifdef UNIVERSAL_BINARY ifdef UNIVERSAL_BINARY
MAKE_SYM_STORE_ARGS := -a "ppc i386" MAKE_SYM_STORE_ARGS := -a "ppc i386" --vcs-info
MAKE_SYM_STORE_PATH := $(DIST)/universal MAKE_SYM_STORE_PATH := $(DIST)/universal
else else
MAKE_SYM_STORE_ARGS := -a $(OS_TEST) MAKE_SYM_STORE_ARGS := -a $(OS_TEST) --vcs-info
MAKE_SYM_STORE_PATH := $(DIST)/bin MAKE_SYM_STORE_PATH := $(DIST)/bin
endif endif
DUMP_SYMS_BIN := $(DIST)/host/bin/dump_syms DUMP_SYMS_BIN := $(DIST)/host/bin/dump_syms

Просмотреть файл

@ -146,7 +146,7 @@ class Dumper:
ProcessDir. Instead, call GetPlatformSpecificDumper to ProcessDir. Instead, call GetPlatformSpecificDumper to
get an instance of a subclass.""" get an instance of a subclass."""
def __init__(self, dump_syms, symbol_path, def __init__(self, dump_syms, symbol_path,
archs=None, srcdir=None, copy_debug=False): archs=None, srcdir=None, copy_debug=False, vcsinfo=False):
self.dump_syms = dump_syms self.dump_syms = dump_syms
self.symbol_path = symbol_path self.symbol_path = symbol_path
if archs is None: if archs is None:
@ -159,6 +159,7 @@ class Dumper:
else: else:
self.srcdir = None self.srcdir = None
self.copy_debug = copy_debug self.copy_debug = copy_debug
self.vcsinfo = vcsinfo
# subclasses override this # subclasses override this
def ShouldProcess(self, file): def ShouldProcess(self, file):
@ -229,7 +230,8 @@ class Dumper:
# FILE index filename # FILE index filename
(x, index, filename) = line.split(None, 2) (x, index, filename) = line.split(None, 2)
filename = self.FixFilenameCase(filename.rstrip()) filename = self.FixFilenameCase(filename.rstrip())
filename = GetVCSFilename(filename, self.srcdir) if self.vcsinfo:
filename = GetVCSFilename(filename, self.srcdir)
f.write("FILE %s %s\n" % (index, filename)) f.write("FILE %s %s\n" % (index, filename))
else: else:
# pass through all other lines unchanged # pass through all other lines unchanged
@ -313,6 +315,9 @@ def main():
parser.add_option("-s", "--srcdir", parser.add_option("-s", "--srcdir",
action="store", dest="srcdir", action="store", dest="srcdir",
help="Use SRCDIR to determine relative paths to source files") help="Use SRCDIR to determine relative paths to source files")
parser.add_option("-v", "--vcs-info",
action="store_true", dest="vcsinfo",
help="Try to retrieve VCS info for each FILE listed in the output")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
if len(args) < 3: if len(args) < 3:
@ -323,7 +328,8 @@ def main():
symbol_path=args[1], symbol_path=args[1],
copy_debug=options.copy_debug, copy_debug=options.copy_debug,
archs=options.archs, archs=options.archs,
srcdir=options.srcdir) srcdir=options.srcdir,
vcsinfo=options.vcsinfo)
for arg in args[2:]: for arg in args[2:]:
dumper.Process(arg) dumper.Process(arg)