diff options
-rw-r--r-- | config_host.mk.in | 1 | ||||
-rw-r--r-- | configure.ac | 20 | ||||
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 4 |
3 files changed, 0 insertions, 25 deletions
diff --git a/config_host.mk.in b/config_host.mk.in index df8205e8ad1d..4d1a98967551 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -305,7 +305,6 @@ export HAVE_GNUMAKE_FILE_FUNC=@HAVE_GNUMAKE_FILE_FUNC@ export HAVE_LD_BSYMBOLIC_FUNCTIONS=@HAVE_LD_BSYMBOLIC_FUNCTIONS@ export HAVE_LD_HASH_STYLE=@HAVE_LD_HASH_STYLE@ export HAVE_LIBCPP=@HAVE_LIBCPP@ -export HAVE_LIBCPP_DEBUG=@HAVE_LIBCPP_DEBUG@ export HAVE_LIBSTDCPP=@HAVE_LIBSTDCPP@ export HAVE_POSIX_FALLOCATE=@HAVE_POSIX_FALLOCATE@ export HAVE_WDEPRECATED_COPY_DTOR=@HAVE_WDEPRECATED_COPY_DTOR@ diff --git a/configure.ac b/configure.ac index ff4aa9cd1c8b..80058aaafb4c 100644 --- a/configure.ac +++ b/configure.ac @@ -7419,26 +7419,6 @@ AC_LANG_POP([C++]) AC_SUBST([HAVE_LIBSTDCPP]) AC_SUBST([HAVE_LIBCPP]) -HAVE_LIBCPP_DEBUG= -if test -n "$HAVE_LIBCPP" -a -n "$ENABLE_DBGUTIL"; then - # libc++ supports debug mode only if built for it, Mac libc++ isn't, - # and there would be undefined references to debug functions - AC_MSG_CHECKING([if libc++ is built with debug mode]) - AC_LANG_PUSH([C++]) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ -#define _LIBCPP_DEBUG 1 -#include <vector> -int foo(const std::vector<int>& v) { return *v.begin(); } -]])], - [AC_MSG_RESULT(yes) - HAVE_LIBCPP_DEBUG=1 - ], - [AC_MSG_RESULT(no)] - ) - AC_LANG_POP([C++]) -fi -AC_SUBST([HAVE_LIBCPP_DEBUG]) - dnl =================================================================== dnl Check for gperf dnl =================================================================== diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index c2db27243457..c7cc1c3ef577 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -53,10 +53,6 @@ gb_COMPILERDEFS := \ ifeq ($(gb_ENABLE_DBGUTIL),$(true)) ifneq ($(HAVE_LIBSTDCPP),) gb_COMPILERDEFS_STDLIB_DEBUG = -D_GLIBCXX_DEBUG -else -ifneq ($(HAVE_LIBCPP_DEBUG),) -gb_COMPILERDEFS_STDLIB_DEBUG = -D_LIBCPP_DEBUG=1 -endif endif gb_COMPILERDEFS += $(gb_COMPILERDEFS_STDLIB_DEBUG) endif |