PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/build/autoconf/frameptr.m4

http://github.com/zpao/v8monkey
m4 | 25 lines | 22 code | 2 blank | 1 comment | 0 complexity | b04cb7d9344ec8cb7f278ef76403d8ce MD5 | raw file
 1dnl Set MOZ_FRAMEPTR_FLAGS to the flags that should be used for enabling or
 2dnl disabling frame pointers in this architecture based on the configure
 3dnl options
 4
 5AC_DEFUN([MOZ_SET_FRAMEPTR_FLAGS], [
 6  if test "$GNU_CC"; then
 7    MOZ_ENABLE_FRAME_PTR="-fno-omit-frame-pointer"
 8    MOZ_DISABLE_FRAME_PTR="-fomit-frame-pointer"
 9  else
10    case "$target" in
11    *-mingw*)
12      MOZ_ENABLE_FRAME_PTR="-Oy-"
13      MOZ_DISABLE_FRAME_PTR="-Oy"
14    ;;
15    esac
16  fi
17
18  # if we are debugging or profiling, we want a frame pointer.
19  if test -z "$MOZ_OPTIMIZE" -o \
20          -n "$MOZ_PROFILING" -o -n "$MOZ_DEBUG"; then
21    MOZ_FRAMEPTR_FLAGS="$MOZ_ENABLE_FRAME_PTR"
22  else
23    MOZ_FRAMEPTR_FLAGS="$MOZ_DISABLE_FRAME_PTR"
24  fi
25])