Bug 1311211: Disable -Gw optimization when building for ASan on Windows. r=glandium

This commit is contained in:
David Major 2016-10-25 10:04:35 -05:00
Родитель 08bbef87dc
Коммит 82e5a56a88
2 изменённых файлов: 10 добавлений и 4 удалений

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

@ -752,8 +752,11 @@ case "$target" in
CXXFLAGS="$CXXFLAGS -FS"
dnl VS2013+ supports -Gw for better linker optimizations.
dnl http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx
CFLAGS="$CFLAGS -Gw"
CXXFLAGS="$CXXFLAGS -Gw"
dnl Disabled on ASan because it causes false-positive ODR violations.
if test -z "$MOZ_ASAN"; then
CFLAGS="$CFLAGS -Gw"
CXXFLAGS="$CXXFLAGS -Gw"
fi
# khuey says we can safely ignore MSVC warning C4251
# MSVC warning C4244 (implicit type conversion may lose data) warns
# and requires workarounds for perfectly valid code. Also, GCC/clang

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

@ -1075,8 +1075,11 @@ case "$target" in
CXXFLAGS="$CXXFLAGS -FS"
dnl VS2013+ supports -Gw for better linker optimizations.
dnl http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx
CFLAGS="$CFLAGS -Gw"
CXXFLAGS="$CXXFLAGS -Gw"
dnl Disabled on ASan because it causes false-positive ODR violations.
if test -z "$MOZ_ASAN"; then
CFLAGS="$CFLAGS -Gw"
CXXFLAGS="$CXXFLAGS -Gw"
fi
# khuey says we can safely ignore MSVC warning C4251
# MSVC warning C4244 (implicit type conversion may lose data) warns
# and requires workarounds for perfectly valid code. Also, GCC/clang