summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-25 04:37:32 (GMT)
committer卜部昌平 <shyouhei@ruby-lang.org>2020-02-25 04:39:46 (GMT)
commit0febd07c698c242109d0171b4ddb8c6722b5df0d (patch)
tree754640382082ddbea437d26ceaba35c0eff7e4f4
parent84d1a99a3fc76b4bcd5fc382e5b30a466b124493 (diff)
ext/-test-/cxxanyargs: use try_link instead
We would like to skip this extension library when libstdc++ is missing. To avoid such situation let's use try_link instead of try_compile.
-rw-r--r--ext/-test-/cxxanyargs/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/-test-/cxxanyargs/extconf.rb b/ext/-test-/cxxanyargs/extconf.rb
index f128984..d1d2469 100644
--- a/ext/-test-/cxxanyargs/extconf.rb
+++ b/ext/-test-/cxxanyargs/extconf.rb
@@ -9,7 +9,7 @@ cxx = MakeMakefile["C++"]
cxx.instance_variable_set(:'@have_devel', true)
-ok = cxx.try_compile(<<~'begin', "") do |x|
+ok = cxx.try_link(<<~'begin', "") do |x|
#include "ruby/config.h"
namespace {