зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e84c3c5ebb
Коммит
da91976685
|
@ -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-"
|
||||
|
|
Загрузка…
Ссылка в новой задаче