Bug 981920 - ASAN builds should use -fno-omit-frame-pointer by default. r=glandium

This commit is contained in:
Andrew McCreight 2014-03-18 14:25:40 -07:00
parent 4a51558dfd
commit 91a9dbd6a1

View File

@ -28,9 +28,11 @@ AC_DEFUN([MOZ_SET_FRAMEPTR_FLAGS], [
esac
fi
# if we are debugging or profiling, we want a frame pointer.
# if we are debugging, profiling or using ASAN, we want a frame pointer.
if test -z "$MOZ_OPTIMIZE" -o \
-n "$MOZ_PROFILING" -o -n "$MOZ_DEBUG"; then
-n "$MOZ_PROFILING" -o \
-n "$MOZ_DEBUG" -o \
-n "$MOZ_ASAN"; then
MOZ_FRAMEPTR_FLAGS="$MOZ_ENABLE_FRAME_PTR"
else
MOZ_FRAMEPTR_FLAGS="$MOZ_DISABLE_FRAME_PTR"