From 7fd82e56a8d6fd48dd22f85ce502c24ff599d7a8 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Sun, 27 Sep 2009 17:47:29 +0000 Subject: Enable -g with DEBUG_SYMBOLS and --enable-debug-symbols instead of DEBUG_RUNTIME. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82906 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'autoconf') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 7d75eb2..e305869 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -381,6 +381,16 @@ else AC_SUBST(DEBUG_RUNTIME,[[DEBUG_RUNTIME=1]]) fi +dnl --enable-debug-symbols : should even optimized compiler libraries +dnl have debug symbols? +AC_ARG_ENABLE(debug-symbols, + AS_HELP_STRING(--enable-debug-symbols,[Build compiler with debug symbols (default is NO if optimization is on and YES if it's off)]),,enableval=no) +if test ${enableval} = "no" ; then + AC_SUBST(DEBUG_SYMBOLS,[[]]) +else + AC_SUBST(DEBUG_SYMBOLS,[[DEBUG_SYMBOLS=1]]) +fi + dnl --enable-jit: check whether they want to enable the jit AC_ARG_ENABLE(jit, AS_HELP_STRING(--enable-jit, -- cgit v1.1