Remove -fomit-frame-pointer when building with any Sanitizer.

On Android/ARM we add -fomit-frame-pointer elsewhere in common.gypi.
Simply adding -fno-omit-frame-pointer when building with sanitizers is
not enough, because the former flag wins (it get added closer to the end
of the command line). Therefore, we also remove all -fomit-frame-pointer
flags under sanitizers.

BUG=325685
TEST=wait for the next clang roll, run asan tests on android
R=glider@chromium.org

Review URL: https://codereview.chromium.org/143873009

git-svn-id: http://src.chromium.org/svn/trunk/src/build@246256 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
eugenis@chromium.org 2014-01-22 09:27:52 +00:00
Родитель 7384b91b39
Коммит 1b77ddb22c
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -3426,6 +3426,9 @@
'-fno-omit-frame-pointer',
'-gline-tables-only',
],
'cflags!': [
'-fomit-frame-pointer',
],
'ldflags!': [
# Functions interposed by the sanitizers can make ld think
# that some libraries aren't needed when they actually are,