mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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. rdar://11844710 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164426 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -678,6 +678,21 @@ esac
|
||||
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]) ;;
|
||||
*) 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])
|
||||
|
||||
dnl Allow specific targets to be specified for building (or not)
|
||||
TARGETS_TO_BUILD=""
|
||||
AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],
|
||||
|
Reference in New Issue
Block a user