mirror of
https://github.com/gperftools/gperftools
synced 2024-12-11 17:56:23 +00:00
configure.ac: use link check for std::align_val_t
This commit is contained in:
parent
36ab068baa
commit
8b1d13c631
@ -385,7 +385,7 @@ AM_CONDITIONAL(HAVE_SIZED_DEALLOCATION,
|
|||||||
AC_CACHE_CHECK([if C++ compiler supports std::align_val_t without options],
|
AC_CACHE_CHECK([if C++ compiler supports std::align_val_t without options],
|
||||||
[perftools_cv_have_align_val_t],
|
[perftools_cv_have_align_val_t],
|
||||||
[AC_LANG_PUSH(C++)
|
[AC_LANG_PUSH(C++)
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||||
[[#include <new>]],
|
[[#include <new>]],
|
||||||
[[(::operator delete)((::operator new)(256, std::align_val_t(16)), std::align_val_t(16))]])],
|
[[(::operator delete)((::operator new)(256, std::align_val_t(16)), std::align_val_t(16))]])],
|
||||||
perftools_cv_have_align_val_t=yes,
|
perftools_cv_have_align_val_t=yes,
|
||||||
|
Loading…
Reference in New Issue
Block a user