summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-12-21 03:31:53 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-12-21 03:31:53 +0000
commit6e96d81c874d19782b6c0942dd89d29eb1dbb75f (patch)
tree6d3cd233fc80e07b1115d980630cb2a72acec436 /autoconf
parent3b841e9f52611c1f92c60f979c775adf2c1fe22d (diff)
downloadllvm-6e96d81c874d19782b6c0942dd89d29eb1dbb75f.tar.gz
llvm-6e96d81c874d19782b6c0942dd89d29eb1dbb75f.tar.bz2
llvm-6e96d81c874d19782b6c0942dd89d29eb1dbb75f.tar.xz
Implement fix for PR471:
* Add --enable-debug-runtime option, defaults to disabled * Pass the new config var, DEBUG_RUNTIME, to Makefiles * Don't use -Wa,-strip-debug if debug-runtime is enabled git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index b328b86e38..09f45e86bf 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -199,6 +199,15 @@ else
AC_SUBST(ENABLE_OPTIMIZED,[[ENABLE_OPTIMIZED=1]])
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)
+if test ${enableval} = "no" ; then
+ AC_SUBST(DEBUG_RUNTIME,[[]])
+else
+ AC_SUBST(DEBUG_RUNTIME,[[DEBUG_RUNTIME=1]])
+fi
+
dnl --enable-jit: check whether they want to enable the jit
AC_ARG_ENABLE(jit,
AS_HELP_STRING(--enable-jit,