aboutsummaryrefslogtreecommitdiffstats
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
parentadd tmpstr to efl eina tree... this is for the future so not going (diff)
downloadefl-3e99bccc7790172a7665f027f783d7185def4452.tar.gz
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
-rw-r--r--README5
-rw-r--r--configure.ac14
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"