Bug 1322983 - Unconditionally build the minidump-analyzer but run it only on nightly/aurora r=ted

This commit is contained in:
Gabriele Svelto 2016-12-13 15:35:16 +01:00
Родитель ae824ee296
Коммит 54a5ae58c0
2 изменённых файлов: 10 добавлений и 7 удалений

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

@ -513,6 +513,8 @@ bool CheckEndOfLifed(string version)
return UIFileExists(reportPath);
}
#ifndef RELEASE_OR_BETA
static string
GetMinidumpAnalyzerPath()
{
@ -524,6 +526,8 @@ GetMinidumpAnalyzerPath()
return path;
}
#endif
int main(int argc, char** argv)
{
gArgc = argc;
@ -545,8 +549,11 @@ int main(int argc, char** argv)
// no dump file specified, run the default UI
UIShowDefaultUI();
} else {
// start by running minidump analyzer
#ifndef RELEASE_OR_BETA
// start by running minidump analyzer, this is currently enabled only in
// nightly and aurora
UIRunMinidumpAnalyzer(GetMinidumpAnalyzerPath(), gReporterDumpFile);
#endif
// go ahead with the crash reporter
gExtraFile = GetAdditionalFilename(gReporterDumpFile, kExtraDataExtension);

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

@ -51,14 +51,10 @@ elif CONFIG['OS_ARCH'] == 'SunOS':
DIRS += [
'client',
'jsoncpp/src/lib_json',
'minidump-analyzer',
]
if CONFIG['NIGHTLY_BUILD']:
DIRS += [
'jsoncpp/src/lib_json',
'minidump-analyzer',
]
if CONFIG['MOZ_CRASHREPORTER_INJECTOR']:
DIRS += ['injector']
UNIFIED_SOURCES += [