mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check if alternative malloc header can work in C++
jemalloc (5.2.1 at least) cannot compile in C++ on macOS SDK, due to conflicts on exception specification.
This commit is contained in:
parent
cba92b3289
commit
122ce52e8f
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ cxx.instance_variable_set(:'@have_devel', true)
|
|||
ok = cxx.try_link(<<~'begin', "") do |x|
|
||||
#include "ruby/config.h"
|
||||
|
||||
#ifdef RUBY_ALTERNATIVE_MALLOC_HEADER
|
||||
# include RUBY_ALTERNATIVE_MALLOC_HEADER
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
typedef int conftest1[SIZEOF_LONG == sizeof(long) ? 1 : -1];
|
||||
typedef int conftest2[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
|
||||
|
|
Loading…
Add table
Reference in a new issue