mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
Bug 1311211: Disable -Gw optimization when building for ASan on Windows. r=glandium
This commit is contained in:
parent
08bbef87dc
commit
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user