From 3e99bccc7790172a7665f027f783d7185def4452 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 17 Oct 2012 13:50:11 +0000 Subject: [PATCH] efl: add --with-profile=debug, make dev faster. seems the debug of threads and stringshare could cause major slowdowns, then add another profile to produce debug. Changes: * dev: unlimited log. * debug: same as dev with debug malloc, threads and stringshare. SVN revision: 78120 --- README | 5 +++-- configure.ac | 14 +++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README b/README index 01a69236fd..b56febcef3 100644 --- a/README +++ b/README @@ -23,8 +23,9 @@ EFL build is based on "profiles". It will default to "dev" for unreleased software and "release" for official tarballs. One can change it with --with-profile=NAME, where NAME is one of: - * dev: debug features, assert() and extra checks useful to test - software. + * dev: extra checks useful to test software. + + * debug: superset of dev, with debug features and assert(). * release: optimizations and less checks so it runs faster. diff --git a/configure.ac b/configure.ac index ceb351b4a6..51180291d4 100644 --- a/configure.ac +++ b/configure.ac @@ -87,13 +87,13 @@ AC_CANONICAL_HOST AC_ARG_WITH([profile], [AC_HELP_STRING([--with-profile=PROFILE], - [use the predefined build profile, one of: dev, release. + [use the predefined build profile, one of: dev, debug and release. @<:@default=dev@:>@])], [build_profile=${withval}], [build_profile=dev]) case "$build_profile" in - dev|release) + dev|debug|release) ;; *) AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}]) @@ -218,7 +218,7 @@ AC_FUNC_ALLOCA prefer_assert="no" case "$build_profile" in - dev) + dev|debug) prefer_assert="yes" ;; esac @@ -354,6 +354,14 @@ have_magic_debug="yes" have_safety_checks="yes" want_log="yes" case "$build_profile" in + debug) + with_max_log_level="" + have_stringshare_usage="no" + want_valgrind="no" # TODO: "yes" is not working: relocation R_X86_64_32S against `vgPlain_interim_stack' can not be used when making a shared object; recompile with -fPIC + want_debug_malloc="no" + want_debug_threads="no" + ;; + dev) with_max_log_level="" have_stringshare_usage="yes"