Bug 751355 - Linux and Fennec profiling builds should be built with disable elfhack and not strip symbols. r=ted

This commit is contained in:
Benoit Girard 2012-05-04 15:35:02 -04:00
parent e25ef03bbb
commit 0f4ea8482b

View File

@ -1926,6 +1926,11 @@ MOZ_ARG_ENABLE_BOOL(profiling,
MOZ_PROFILING=1,
MOZ_PROFILING= )
# For profiling builds keep the symbol information
if test "$MOZ_PROFILING" -a -z "$STRIP_FLAGS"; then
STRIP_FLAGS="--strip-debug"
fi
dnl ========================================================
dnl = Use Valgrind
dnl ========================================================
@ -7438,6 +7443,13 @@ MOZ_ARG_DISABLE_BOOL(elf-hack,
USE_ELF_HACK=,
USE_ELF_HACK=1)
# Disable elf hack for profiling because the built in profiler
# doesn't read the segments properly with elf hack. This is
# temporary and should be fixed soon in the profiler.
if test "$MOZ_PROFILING" = 1; then
USE_ELF_HACK=
fi
# Only enable elfhack where supported
if test "$USE_ELF_HACK" = 1; then
case "${HOST_OS_ARCH},${OS_ARCH}" in