diff options
author | David Greene <greened@obbligato.org> | 2007-06-28 19:36:08 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2007-06-28 19:36:08 +0000 |
commit | a696d24ad275608540aba1e5c668bbd52e04317e (patch) | |
tree | 6fad9d35105e5dfcbaa83e58a78ef2a7b92f904b /autoconf | |
parent | 31ed0fb804dd86fb15093e114701932119914400 (diff) | |
download | llvm-a696d24ad275608540aba1e5c668bbd52e04317e.tar.gz llvm-a696d24ad275608540aba1e5c668bbd52e04317e.tar.bz2 llvm-a696d24ad275608540aba1e5c668bbd52e04317e.tar.xz |
Add support for building with _GLIBCXX_DEBUG. New configure option
--enable-expensive-checks allows the developer to enable runtime
checking that can greatly increase compile time. Currently it only
turns on _GLIBCXX_DEBUG. Other expensive debugging checks added later
should be controlled by this configure option.
This patch also updates llvm-config with a --cppflags option to inform
llvm-gcc how to build itself so that it is compatible with an llvm that
was built with _GLIBCXX_DEBUG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index c8fd77f432..4e4200be5b 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -274,6 +274,17 @@ else AC_SUBST(DISABLE_ASSERTIONS,[[DISABLE_ASSERTIONS=1]]) fi +dnl --enable-expensive-checks : check whether they want to turn on expensive debug checks: +AC_ARG_ENABLE(expensive-checks,AS_HELP_STRING( + [--enable-expensive-checks,Compile with expensive debug checks enabled (default is NO)]),, enableval="no") +if test ${enableval} = "yes" ; then + AC_SUBST(ENABLE_EXPENSIVE_CHECKS,[[ENABLE_EXPENSIVE_CHECKS=1]]) + AC_SUBST(EXPENSIVE_CHECKS,[[yes]]) +else + AC_SUBST(ENABLE_EXPENSIVE_CHECKS,[[]]) + AC_SUBST(EXPENSIVE_CHECKS,[[no]]) +fi + dnl --enable-debug-runtime : should runtime libraries have debug symbols? AC_ARG_ENABLE(debug-runtime, AS_HELP_STRING([--enable-debug-runtime,Build runtime libs with debug symbols (default is NO)]),,enableval=no) |