зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1311211: Disable -Gw optimization when building for ASan on Windows. r=glandium
This commit is contained in:
Родитель
08bbef87dc
Коммит
82e5a56a88
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче