mirror of
https://github.com/gperftools/gperftools
synced 2025-01-02 12:42:04 +00:00
Revert "disable dynamic sized delete support by default"
This reverts commit 06811b3ae4
.
This commit is contained in:
parent
fac0bb44d5
commit
b82d89cb7c
19
configure.ac
19
configure.ac
@ -332,10 +332,23 @@ AM_CONDITIONAL(HAVE_W_NO_UNUSED_RESULT,
|
||||
test "$perftools_cv_w_no_unused_result" = yes)
|
||||
|
||||
AC_ARG_ENABLE([dynamic-sized-delete-support],
|
||||
[AS_HELP_STRING([--enable-dynamic-sized-delete-support],
|
||||
[try to build run-time switch for sized delete operator])],
|
||||
[AS_HELP_STRING([--disable-dynamic-sized-delete-support],
|
||||
[don't try to build run-time switch for sized delete operator])],
|
||||
[enable_dyn_sized_delete="$enableval"],
|
||||
[enable_dyn_sized_delete=no])
|
||||
[enable_dyn_sized_delete=default])
|
||||
|
||||
AS_IF([test "x$enable_dyn_sized_delete" = xdefault],
|
||||
[AC_CACHE_CHECK(
|
||||
[if the compiler supports ifunc attributes for target],
|
||||
[perftools_cv_ifunc_result],
|
||||
[AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([
|
||||
void *resolve_foo() {return 0;}
|
||||
void foo() __attribute__((ifunc("resolve_foo")));
|
||||
],[foo();])],
|
||||
[perftools_cv_ifunc_result=yes],
|
||||
[perftools_cv_ifunc_result=no])])]
|
||||
[enable_dyn_sized_delete=$perftools_cv_ifunc_result])
|
||||
|
||||
AS_IF([test "x$enable_dyn_sized_delete" = xyes],
|
||||
[AC_DEFINE([ENABLE_DYNAMIC_SIZED_DELETE], 1,
|
||||
|
Loading…
Reference in New Issue
Block a user