summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-17 13:50:11 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-10-17 13:50:11 +0000
commit3e99bccc7790172a7665f027f783d7185def4452 (patch)
tree8302ce45eb9035a561a9a90297e3fe54687b450e /configure.ac
parentafdd3f4a398489568a08b50b0b004b8ff810d2d4 (diff)
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
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 11 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index ceb351b..5118029 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,13 +87,13 @@ AC_CANONICAL_HOST
87 87
88AC_ARG_WITH([profile], 88AC_ARG_WITH([profile],
89 [AC_HELP_STRING([--with-profile=PROFILE], 89 [AC_HELP_STRING([--with-profile=PROFILE],
90 [use the predefined build profile, one of: dev, release. 90 [use the predefined build profile, one of: dev, debug and release.
91 @<:@default=dev@:>@])], 91 @<:@default=dev@:>@])],
92 [build_profile=${withval}], 92 [build_profile=${withval}],
93 [build_profile=dev]) 93 [build_profile=dev])
94 94
95case "$build_profile" in 95case "$build_profile" in
96 dev|release) 96 dev|debug|release)
97 ;; 97 ;;
98 *) 98 *)
99 AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}]) 99 AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}])
@@ -218,7 +218,7 @@ AC_FUNC_ALLOCA
218 218
219prefer_assert="no" 219prefer_assert="no"
220case "$build_profile" in 220case "$build_profile" in
221 dev) 221 dev|debug)
222 prefer_assert="yes" 222 prefer_assert="yes"
223 ;; 223 ;;
224esac 224esac
@@ -354,6 +354,14 @@ have_magic_debug="yes"
354have_safety_checks="yes" 354have_safety_checks="yes"
355want_log="yes" 355want_log="yes"
356case "$build_profile" in 356case "$build_profile" in
357 debug)
358 with_max_log_level=""
359 have_stringshare_usage="no"
360 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
361 want_debug_malloc="no"
362 want_debug_threads="no"
363 ;;
364
357 dev) 365 dev)
358 with_max_log_level="" 366 with_max_log_level=""
359 have_stringshare_usage="yes" 367 have_stringshare_usage="yes"