mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Do not honor stdlib-debug when c++library is not gcc's libstdc++
Actually the real difference is that it does not complain about system boost any more when LLVM's libc++ is used.
This commit is contained in:
parent
47330a66a8
commit
f6921d9161
@ -422,14 +422,14 @@ if test x$GXX = xyes; then
|
|||||||
if test x$enable_stdlib_debug = xyes ; then
|
if test x$enable_stdlib_debug = xyes ; then
|
||||||
dnl FIXME: for clang/libc++, one should define _LIBCPP_DEBUG2=0
|
dnl FIXME: for clang/libc++, one should define _LIBCPP_DEBUG2=0
|
||||||
dnl See http://clang-developers.42468.n3.nabble.com/libc-debug-mode-td3336742.html
|
dnl See http://clang-developers.42468.n3.nabble.com/libc-debug-mode-td3336742.html
|
||||||
case $gxx_version in
|
if test x$lyx_cv_lib_stdcxx = xyes ; then
|
||||||
*)
|
|
||||||
lyx_flags="$lyx_flags stdlib-debug"
|
lyx_flags="$lyx_flags stdlib-debug"
|
||||||
AC_DEFINE(_GLIBCXX_DEBUG, 1, [libstdc++ debug mode])
|
AC_DEFINE(_GLIBCXX_DEBUG, 1, [libstdc++ debug mode])
|
||||||
AC_DEFINE(_GLIBCXX_DEBUG_PEDANTIC, 1, [libstdc++ pedantic debug mode])
|
AC_DEFINE(_GLIBCXX_DEBUG_PEDANTIC, 1, [libstdc++ pedantic debug mode])
|
||||||
AC_SUBST(STDLIB_DEBUG, "-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC")
|
AC_SUBST(STDLIB_DEBUG, "-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC")
|
||||||
;;
|
else
|
||||||
esac
|
enable_stdlib_debug=no
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user