Bug 931687 - Add -Gw option when using VS2013. r=glandium

This commit is contained in:
Makoto Kato 2013-11-05 12:46:46 +09:00
parent 428e4969a8
commit 6d2b5483e4
2 changed files with 10 additions and 4 deletions

View File

@ -2079,8 +2079,11 @@ ia64*-hpux*)
if test "$_CC_SUITE" -ge "12"; then
dnl VS2013+ requires -FS when parallel building by make -jN.
dnl If nothing, compiler sometimes causes C1041 error.
CFLAGS="$CFLAGS -FS"
CXXFLAGS="$CXXFLAGS -FS"
dnl
dnl Visual Studio 2013 supports -Gw flags
dnl http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx
CFLAGS="$CFLAGS -FS -Gw"
CXXFLAGS="$CXXFLAGS -FS -Gw"
fi
# khuey says we can safely ignore MSVC warning C4251
# MSVC warning C4244 (implicit type conversion may lose data) warns

View File

@ -1647,8 +1647,11 @@ ia64*-hpux*)
if test "$_CC_SUITE" -ge "12"; then
dnl VS2013+ requires -FS when parallel building by make -jN.
dnl If nothing, compiler sometimes causes C1041 error.
CFLAGS="$CFLAGS -FS"
CXXFLAGS="$CXXFLAGS -FS"
dnl
dnl Visual Studio 2013 supports -Gw flags
dnl http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx
CFLAGS="$CFLAGS -FS -Gw"
CXXFLAGS="$CXXFLAGS -FS -Gw"
fi
# khuey says we can safely ignore MSVC warning C4251
# MSVC warning C4244 (implicit type conversion may lose data) warns