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
This commit is contained in:
Gustavo Sverzut Barbieri 2012-10-17 13:50:11 +00:00
parent afdd3f4a39
commit 3e99bccc77
2 changed files with 14 additions and 5 deletions

5
README
View File

@ -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 unreleased software and "release" for official tarballs. One can
change it with --with-profile=NAME, where NAME is one of: change it with --with-profile=NAME, where NAME is one of:
* dev: debug features, assert() and extra checks useful to test * dev: extra checks useful to test software.
software.
* debug: superset of dev, with debug features and assert().
* release: optimizations and less checks so it runs faster. * release: optimizations and less checks so it runs faster.

View File

@ -87,13 +87,13 @@ AC_CANONICAL_HOST
AC_ARG_WITH([profile], AC_ARG_WITH([profile],
[AC_HELP_STRING([--with-profile=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@:>@])], @<:@default=dev@:>@])],
[build_profile=${withval}], [build_profile=${withval}],
[build_profile=dev]) [build_profile=dev])
case "$build_profile" in case "$build_profile" in
dev|release) dev|debug|release)
;; ;;
*) *)
AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}]) AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}])
@ -218,7 +218,7 @@ AC_FUNC_ALLOCA
prefer_assert="no" prefer_assert="no"
case "$build_profile" in case "$build_profile" in
dev) dev|debug)
prefer_assert="yes" prefer_assert="yes"
;; ;;
esac esac
@ -354,6 +354,14 @@ have_magic_debug="yes"
have_safety_checks="yes" have_safety_checks="yes"
want_log="yes" want_log="yes"
case "$build_profile" in 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) dev)
with_max_log_level="" with_max_log_level=""
have_stringshare_usage="yes" have_stringshare_usage="yes"