[前][次][番号順一覧][スレッド一覧]

ruby-changes:60182

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 25 Feb 2020 13:40:18 +0900 (JST)
Subject: [ruby-changes:60182] 0febd07c69 (master): ext/-test-/cxxanyargs: use try_link instead

https://git.ruby-lang.org/ruby.git/commit/?id=0febd07c69

From 0febd07c698c242109d0171b4ddb8c6722b5df0d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Tue, 25 Feb 2020 13:37:32 +0900
Subject: 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.

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++"] https://github.com/ruby/ruby/blob/trunk/ext/-test-/cxxanyargs/extconf.rb#L9
 
 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 {
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]