mirror of
https://github.com/gperftools/gperftools
synced 2025-01-02 12:42:04 +00:00
configure.ac: better test for -faligned-new
XCode 9 provides only partial support for aligned new/delete when -faligned-new is specified. Require successful linking to enable aligned new/delete.
This commit is contained in:
parent
6a4b079997
commit
36ab068baa
@ -397,7 +397,7 @@ AC_CACHE_CHECK([if C++ compiler supports -faligned-new],
|
||||
[AC_LANG_PUSH(C++)
|
||||
OLD_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS -faligned-new"
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||
[[#include <new>]],
|
||||
[[(::operator delete)((::operator new)(256, std::align_val_t(16)), std::align_val_t(16))]])],
|
||||
perftools_cv_have_f_aligned_new=yes,
|
||||
|
Loading…
Reference in New Issue
Block a user