Bug 1525630 - choose the correct frame pointer enablement options on aarch64 windows; r=dmajor

clang-cl doesn't currently support -Oy correctly, so we need to resort
to the GNU-ish based spelling.
This commit is contained in:
Nathan Froyd 2019-02-12 16:45:40 -05:00
Родитель e84c3c5ebb
Коммит da91976685
1 изменённых файлов: 10 добавлений и 0 удалений

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

@ -12,6 +12,16 @@ AC_DEFUN([MOZ_SET_FRAMEPTR_FLAGS], [
MOZ_DISABLE_FRAME_PTR="-fomit-frame-pointer -funwind-tables"
else
case "$target" in
dnl some versions of clang-cl don't support -Oy-; accommodate them.
aarch64-windows*)
if test "$CC_TYPE" = "clang-cl"; then
MOZ_ENABLE_FRAME_PTR="-Xclang -mdisable-fp-elim"
MOZ_DISABLE_FRAME_PTR="-Xclang -mdisable-fp-elim"
else
MOZ_ENABLE_FRAME_PTR="-Oy-"
MOZ_DISABLE_FRAME_PTR="-Oy"
fi
;;
dnl Oy (Frame-Pointer Omission) is only support on x86 compilers
*-mingw32*)
MOZ_ENABLE_FRAME_PTR="-Oy-"