ruby-changes:57800
From: Nobuyoshi <ko1@a...>
Date: Thu, 19 Sep 2019 11:25:30 +0900 (JST)
Subject: [ruby-changes:57800] 2d1e3bd8f1 (master): DEBUG: cxxanyargs
https://git.ruby-lang.org/ruby.git/commit/?id=2d1e3bd8f1 From 2d1e3bd8f1448ef55d3e1bda8dc0855ae995d659 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 19 Sep 2019 11:25:09 +0900 Subject: DEBUG: cxxanyargs diff --git a/ext/-test-/cxxanyargs/extconf.rb b/ext/-test-/cxxanyargs/extconf.rb index 744f94d..b8b6ba2 100644 --- a/ext/-test-/cxxanyargs/extconf.rb +++ b/ext/-test-/cxxanyargs/extconf.rb @@ -2,6 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/extconf.rb#L2 cxx = MakeMakefile["C++"] +begin ok = cxx.try_compile(<<~'begin', "") do |x| #include "ruby/config.h" @@ -20,6 +21,8 @@ begin https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/extconf.rb#L21 # 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/