From 2d1e3bd8f1448ef55d3e1bda8dc0855ae995d659 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 19 Sep 2019 11:25:09 +0900 Subject: DEBUG: cxxanyargs --- ext/-test-/cxxanyargs/extconf.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext') diff --git a/ext/-test-/cxxanyargs/extconf.rb b/ext/-test-/cxxanyargs/extconf.rb index 744f94dcae..b8b6ba2fd3 100644 --- a/ext/-test-/cxxanyargs/extconf.rb +++ b/ext/-test-/cxxanyargs/extconf.rb @@ -2,6 +2,7 @@ cxx = MakeMakefile["C++"] +begin ok = cxx.try_compile(<<~'begin', "") do |x| #include "ruby/config.h" @@ -20,6 +21,8 @@ begin # subject we are going to test in this extension library. x.sub! %<#include "ruby.h">, '' end +rescue +end if ok create_makefile("-test-/cxxanyargs") -- cgit v1.2.3