aboutsummaryrefslogtreecommitdiffstats
path: root/ext/-test-/cxxanyargs
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-13 14:29:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-13 15:12:45 +0900
commit122ce52e8f4f1a7654e0e2f80081487e23af42ce (patch)
treeb5a324e04551c5be14115d91b74e3c227c966d45 /ext/-test-/cxxanyargs
parentcba92b328967256a526b5e0c7cd976347eefcb79 (diff)
downloadruby-122ce52e8f4f1a7654e0e2f80081487e23af42ce.tar.gz
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.
Diffstat (limited to 'ext/-test-/cxxanyargs')
-rw-r--r--ext/-test-/cxxanyargs/extconf.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/-test-/cxxanyargs/extconf.rb b/ext/-test-/cxxanyargs/extconf.rb
index d1d2469209..9749f42068 100644
--- a/ext/-test-/cxxanyargs/extconf.rb
+++ b/ext/-test-/cxxanyargs/extconf.rb
@@ -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];