1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
卜部昌平 2020-02-25 13:37:32 +09:00
parent 84d1a99a3f
commit 0febd07c69

View file

@ -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 {