Bug 1433171 Do a test run with d2guardswtablesuppress
MozReview-Commit-ID: C4LEdYlyElH
--- a/js/src/old-configure.in
+++ b/js/src/old-configure.in
@@ -189,16 +189,19 @@ case "$target" in
# https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level
CXXFLAGS="$CXXFLAGS -w15038"
fi
_CC_SUITE=14
MSVC_C_RUNTIME_DLL=vcruntime140.dll
MSVC_CXX_RUNTIME_DLL=msvcp140.dll
+ CFLAGS="$CFLAGS -d2guardswtablesuppress"
+ CXXFLAGS="$CXXFLAGS -d2guardswtablesuppress"
+
# C5026: move constructor was implicitly defined as deleted
CXXFLAGS="$CXXFLAGS -wd5026"
# C5027: move assignment operator was implicitly defined as deleted
CXXFLAGS="$CXXFLAGS -wd5027"
# -Zc:sizedDealloc- disables C++14 global sized deallocation (see bug 1160146)
CXXFLAGS="$CXXFLAGS -Zc:sizedDealloc-"
--- a/old-configure.in
+++ b/old-configure.in
@@ -182,16 +182,19 @@ case "$target" in
AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
AC_DEFINE(_USE_MATH_DEFINES) # Otherwise MSVC's math.h doesn't #define M_PI.
_CC_SUITE=14
MSVC_C_RUNTIME_DLL=vcruntime140.dll
MSVC_CXX_RUNTIME_DLL=msvcp140.dll
+ CFLAGS="$CFLAGS -d2guardswtablesuppress"
+ CXXFLAGS="$CXXFLAGS -d2guardswtablesuppress"
+
MOZ_CHECK_HEADER(dia2.h, MSVC_HAS_DIA_SDK=1)
if test -n "$MSVC_HAS_DIA_SDK"; then
AC_DEFINE(MSVC_HAS_DIA_SDK)
fi
if test "$_MSC_VER" -ge "1910"; then # VS2017+
# C5038: Enable initializer list order warnings
# The -w1#### flag treats warning C#### as if it was a warning level