Bug 1175857 - Build dump_syms with compiler optimizations; r=glandium

dump_syms has been measured to be ~50% faster when compiled with
optimizations. Since symbol generation takes a lot of time on the
builders, this difference matters.

Compile dump_syms with optimizations to make symbol dumping faster
and hopefully making build jobs faster as well.
This commit is contained in:
Chris Manchester 2015-09-24 17:05:40 -04:00
parent adf388bff5
commit 247f3c9d0f
3 changed files with 25 additions and 4 deletions

View File

@ -8,7 +8,10 @@ HOST_SOURCES += [
'dump_syms.cc',
]
HostProgram('dump_syms')
HOST_CXXFLAGS += [
'-O2',
'-g',
]
# host_breakpad_linux_common_s needs to come first
HOST_USE_LIBS += [
@ -19,6 +22,10 @@ HOST_USE_LIBS += [
'host_breakpad_dwarf_s',
]
# The HostProgram template may append 'host_stdc++compat' to
# HOST_USE_LIBS, which needs to appear after the entries above.
HostProgram('dump_syms')
LOCAL_INCLUDES += [
'../../..',
'../../../common/linux',

View File

@ -8,7 +8,10 @@ HOST_SOURCES += [
'dump_syms_tool.cc',
]
HostProgram('dump_syms')
HOST_CXXFLAGS += [
'-O2',
'-g',
]
# Order matters here, but HOST_USE_LIBS must be sorted.
HOST_USE_LIBS += [
@ -19,6 +22,10 @@ HOST_USE_LIBS += [
'host_breakpad_dwarf_s',
]
# The HostProgram template may append 'host_stdc++compat' to
# HOST_USE_LIBS, which needs to appear after the entries above.
HostProgram('dump_syms')
LOCAL_INCLUDES += [
'../../..',
'../../../common/mac',

View File

@ -7,14 +7,21 @@
HOST_SOURCES += [
'dump_syms.cc',
]
HostProgram('dump_syms')
HOST_CXXFLAGS += [
'-O2',
'-g',
]
HOST_USE_LIBS += [
'host_breakpad_common_s',
'host_breakpad_solaris_common_s',
]
# The HostProgram template may append 'host_stdc++compat' to
# HOST_USE_LIBS, which needs to appear after the entries above.
HostProgram('dump_syms')
LOCAL_INCLUDES += [
'../../..',
'../../../common/solaris',