summaryrefslogtreecommitdiff
path: root/old-configure.in
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2022-07-01 17:43:55 -0500
committerJeremy Andrews <athenian200@outlook.com>2022-07-02 13:05:26 -0500
commit057c632bee4c1d2ec9e1546229227583ea4fc835 (patch)
tree75ecfb67a9e1f77a229598f48bbe97b80839227b /old-configure.in
parent07689ab83f78ea379e744fdb473b22ed0f9ebf95 (diff)
downloaduxp-057c632bee4c1d2ec9e1546229227583ea4fc835.tar.gz
Issue #1956 - Allow building with newer MSVC versions.
Diffstat (limited to 'old-configure.in')
-rw-r--r--old-configure.in32
1 files changed, 2 insertions, 30 deletions
diff --git a/old-configure.in b/old-configure.in
index e575f65fa5..0ed6984ca9 100644
--- a/old-configure.in
+++ b/old-configure.in
@@ -258,35 +258,8 @@ case "$target" in
unset _MSVC_VER_FILTER
- 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
+ WRAP_STL_INCLUDES=1
+ STL_FLAGS="-I${DIST}/stl_wrappers"
CFLAGS="$CFLAGS -D_HAS_EXCEPTIONS=0"
CXXFLAGS="$CXXFLAGS -D_HAS_EXCEPTIONS=0"
else
@@ -373,7 +346,6 @@ AC_SUBST(GNU_CXX)
AC_SUBST(STL_FLAGS)
AC_SUBST(WRAP_STL_INCLUDES)
-AC_SUBST(MOZ_MSVC_STL_WRAP_RAISE)
dnl ========================================================
dnl Checks for programs.