Kaydet (Commit) f15274a9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Completely remove obsolete HAVE_BROKEN_STATIC_INITIALIZER_LIST check

...after it had already been phased out almost two years ago with
721116c7 "Phase out support for
HAVE_BROKEN_STATIC_INITIALIZER_LIST"

Change-Id: Idfc216f10ecff9dab6a3218ba234d458d7816839
Reviewed-on: https://gerrit.libreoffice.org/63766
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 9decbd59
......@@ -12530,40 +12530,6 @@ if test "$broken" = yes; then
fi
AC_MSG_CHECKING([whether $CXX has broken static initializer_list support])
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
save_LIBS=$LIBS
if test -n "$ILIB1"; then
LIBS="$LIBS $ILIB1"
fi
AC_LANG_PUSH([C++])
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
// Exit with failure if the static initializer_list is stored on the
// stack (as done by Clang < 3.4):
#include <initializer_list>
struct S {};
bool g(void const * p1, void const * p2) {
int n;
return !((p1 > p2 && p2 > &n) || (p1 < p2 && p2 < &n));
}
bool f(void const * p1) {
static std::initializer_list<S> s { S() };
return g(p1, s.begin());
}
]],[[
int n;
return f(&n) ? 0 : 1;
]])], [broken=no], [broken=yes],[broken='assuming not (cross-compiling)'])
AC_LANG_POP([C++])
LIBS=$save_LIBS
CXXFLAGS=$save_CXXFLAGS
AC_MSG_RESULT([$broken])
if test "$broken" = yes -a "$_os" != "iOS"; then
AC_MSG_ERROR([working support for static initializer_list needed])
fi
# ===================================================================
# Creating bigger shared library to link against
# ===================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment