summaryrefslogtreecommitdiff
path: root/ext/-test-
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-19 11:25:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-19 11:25:09 +0900
commit2d1e3bd8f1448ef55d3e1bda8dc0855ae995d659 (patch)
tree08a6bd3bf25ce7f93c2e7c322d03c8a4bd3ad194 /ext/-test-
parenta98181eb11ab3d0a643a5fb50e731c3fe50960d9 (diff)
DEBUG: cxxanyargs
Diffstat (limited to 'ext/-test-')
-rw-r--r--ext/-test-/cxxanyargs/extconf.rb3
1 files changed, 3 insertions, 0 deletions
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")