[llvm-commits] [llvm] r164426 - in /llvm/trunk: autoconf/configure.ac configure include/llvm/Config/config.h.in lib/Support/Unix/Signals.inc

Dimitry Andric dimitry at andric.com
Mon Nov 19 11:15:52 PST 2012


On 2012-09-22 01:03, Eric Christopher wrote:
> Author: echristo
> Date: Fri Sep 21 18:03:29 2012
> New Revision: 164426
>
> URL: http://llvm.org/viewvc/llvm-project?rev=164426&view=rev
> Log:
> Add an --enable-backtraces option to configure to determine
> whether or not we want to print out backtrace information. Useful
> for libraries that don't need backtrace information on a crash.
...
> @@ -678,6 +678,21 @@
>   AC_DEFINE_UNQUOTED([ENABLE_TIMESTAMPS],$ENABLE_TIMESTAMPS,
>                      [Define if timestamp information (e.g., __DATE__) is allowed])
>
> +dnl Enable embedding timestamp information into build.
> +
> +AC_ARG_ENABLE(backtraces,
> +  AS_HELP_STRING([--enable-backtraces],
> +                 [Enable embedding backtraces on crash (default is YES)]),,
> +                 enableval=default)
> +case "$enableval" in
> +  yes) AC_SUBST(ENABLE_TIMESTAMPS,[1]) ;;
> +  no)  AC_SUBST(ENABLE_TIMESTAMPS,[0]) ;;
> +  default) AC_SUBST(ENABLE_TIMESTAMPS,[1]) ;;

This is a pasto, you probably meant ENABLE_BACKTRACES here?


> +  *) AC_MSG_ERROR([Invalid setting for --enable-backtraces. Use "yes" or "no"]) ;;
> +esac
> +AC_DEFINE_UNQUOTED([ENABLE_BACKTRACES],$ENABLE_BACKTRACES,
> +                   [Define if you want backtraces on crash])
> +



More information about the llvm-commits mailing list