summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-02-25 13:37:32 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-02-25 13:39:46 +0900
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 f128984522..d1d2469209 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 {