1
0
Fork 0
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:
Nobuyoshi Nakada 2021-06-13 14:29:01 +09:00
parent cba92b3289
commit 122ce52e8f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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];