Skip to content

Commit

Permalink
bug 386212 - fx-win32-tbox has lost the ability to report finishing n…
Browse files Browse the repository at this point in the history
…ightly builds. r=bsmedberg
  • Loading branch information
Unknown committed Jun 30, 2007
1 parent 5c2d1a0 commit 548e8df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ endif
ifeq ($(OS_ARCH),Darwin)
# need to pass arch flags for universal builds
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
else
MAKE_SYM_STORE_ARGS := -a $(OS_TEST)
MAKE_SYM_STORE_ARGS := -a $(OS_TEST) --vcs-info
MAKE_SYM_STORE_PATH := $(DIST)/bin
endif
DUMP_SYMS_BIN := $(DIST)/host/bin/dump_syms
Expand Down
12 changes: 9 additions & 3 deletions toolkit/airbag/tools/symbolstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Dumper:
ProcessDir. Instead, call GetPlatformSpecificDumper to
get an instance of a subclass."""
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.symbol_path = symbol_path
if archs is None:
Expand All @@ -159,6 +159,7 @@ def __init__(self, dump_syms, symbol_path,
else:
self.srcdir = None
self.copy_debug = copy_debug
self.vcsinfo = vcsinfo

# subclasses override this
def ShouldProcess(self, file):
Expand Down Expand Up @@ -229,7 +230,8 @@ def ProcessFile(self, file):
# FILE index filename
(x, index, filename) = line.split(None, 2)
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))
else:
# pass through all other lines unchanged
Expand Down Expand Up @@ -313,6 +315,9 @@ def main():
parser.add_option("-s", "--srcdir",
action="store", dest="srcdir",
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()

if len(args) < 3:
Expand All @@ -323,7 +328,8 @@ def main():
symbol_path=args[1],
copy_debug=options.copy_debug,
archs=options.archs,
srcdir=options.srcdir)
srcdir=options.srcdir,
vcsinfo=options.vcsinfo)
for arg in args[2:]:
dumper.Process(arg)

Expand Down

0 comments on commit 548e8df

Please sign in to comment.