Skip to content

Commit

Permalink
Backed out 3 changesets (bug 1484184, bug 1484190, bug 1484191) for b…
Browse files Browse the repository at this point in the history
…ustages on test_toolchain_configure.py. CLOSED TREE

Backed out changeset dca5444170e0 (bug 1484190)
Backed out changeset 1ef81d07bc5b (bug 1484184)
Backed out changeset 2a42fd4df1bb (bug 1484191)
  • Loading branch information
nbeleuzu committed Aug 20, 2018
1 parent 5131150 commit 1729400
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 17 deletions.
10 changes: 5 additions & 5 deletions build/moz.configure/toolchain.configure
Original file line number Diff line number Diff line change
Expand Up @@ -933,19 +933,19 @@ def compiler(language, host_or_target, c_compiler=None, other_compiler=None,
raise FatalCheckError(
'This version (%s) of the MSVC compiler is not '
'supported.\n'
'You must install Visual C++ 2017 Update 6 or '
'Update 8 or later in order to build.\n'
'You must install Visual C++ 2017 Update 6 in '
'order to build.\n'
'See https://developer.mozilla.org/en/'
'Windows_Build_Prerequisites' % info.version)

# MSVC version 15.7 and the previews for 15.8, at least,
# can't build Firefox.
if info.version >= '19.14.0' and info.version < '19.15.0':
if info.version >= '19.14.0':
raise FatalCheckError(
'This version (%s) of the MSVC compiler is not '
'supported due to compiler bugs.\n'
'You must install Visual C++ 2017 Update 6 or '
'Update 8 or later in order to build.\n'
'You must install Visual C++ 2017 Update 6 in '
'order to build.\n'
'See https://developer.mozilla.org/en/'
'Windows_Build_Prerequisites' % info.version)

Expand Down
7 changes: 0 additions & 7 deletions dom/base/test/gtest/TestMimeType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ TEST(MimeType, DuplicateParameter2)
"Duplicate parameter #2";
}

#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4819)
#endif
TEST(MimeType, NonAlphanumericParametersAreQuoted)
{
const auto in = NS_LITERAL_STRING("text/html;test=\x00FF\\;charset=gbk");
Expand All @@ -226,9 +222,6 @@ TEST(MimeType, NonAlphanumericParametersAreQuoted)
ASSERT_TRUE(out.Equals(NS_LITERAL_STRING("text/html;test=\"\x00FF\\\\\";charset=gbk"))) <<
"Non-alphanumeric parameters are quoted";
}
#ifdef _MSC_VER
#pragma warning(pop)
#endif

TEST(MimeType, ParameterQuotedIfHasLeadingWhitespace1)
{
Expand Down
7 changes: 4 additions & 3 deletions memory/mozalloc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ if CONFIG['WRAP_STL_INCLUDES']:
EXPORTS.mozilla += ['throw_gcc.h']
elif CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
DEFINES['_HAS_EXCEPTIONS'] = 0
SOURCES += [
'msvc_raise_wrappers.cpp',
]
if CONFIG['MOZ_MSVC_STL_WRAP_RAISE']:
SOURCES += [
'msvc_raise_wrappers.cpp',
]

if CONFIG['OS_TARGET'] == 'WINNT':
# Keep this file separate to avoid #include'ing windows.h everywhere.
Expand Down
32 changes: 30 additions & 2 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,35 @@ case "$target" in

unset _MSVC_VER_FILTER

WRAP_STL_INCLUDES=1
STL_FLAGS="-I${DIST}/stl_wrappers"
AC_CACHE_CHECK(for overridable _RAISE,
ac_cv_have__RAISE,
[
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
_SAVE_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="${CXXFLAGS} -D_HAS_EXCEPTIONS=0"
AC_TRY_COMPILE([#include <xstddef>
#undef _RAISE
#define _RAISE(x) externallyDefinedFunction((x).what())
#include <vector>
],
[std::vector<int> v; return v.at(1);],
ac_cv_have__RAISE="no",
ac_cv_have__RAISE="yes")
CXXFLAGS="$_SAVE_CXXFLAGS"
AC_LANG_RESTORE
])
if test "$ac_cv_have__RAISE" = "yes"; then
WRAP_STL_INCLUDES=1
MOZ_MSVC_STL_WRAP_RAISE=1
AC_DEFINE(MOZ_MSVC_STL_WRAP_RAISE)
else
AC_MSG_ERROR([Gecko exception wrapping doesn't understand your your MSVC/SDK. Please file a bug describing this error and your build configuration.])
fi

if test "$WRAP_STL_INCLUDES" = "1"; then
STL_FLAGS="-I${DIST}/stl_wrappers"
fi
CFLAGS="$CFLAGS -D_HAS_EXCEPTIONS=0"
CXXFLAGS="$CXXFLAGS -D_HAS_EXCEPTIONS=0"
else
Expand Down Expand Up @@ -368,6 +395,7 @@ AC_SUBST(GNU_CXX)

AC_SUBST_LIST(STL_FLAGS)
AC_SUBST(WRAP_STL_INCLUDES)
AC_SUBST(MOZ_MSVC_STL_WRAP_RAISE)

dnl ========================================================
dnl Checks for programs.
Expand Down

0 comments on commit 1729400

Please sign in to comment.