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

ruby-changes:60462

From: Nobuyoshi <ko1@a...>
Date: Sat, 21 Mar 2020 16:49:35 +0900 (JST)
Subject: [ruby-changes:60462] 318be1cb2f (master): Show libffi version only if set

https://git.ruby-lang.org/ruby.git/commit/?id=318be1cb2f

From 318be1cb2f9c6f04403c063a5618c6267012ee51 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 21 Mar 2020 16:33:18 +0900
Subject: Show libffi version only if set


diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index ad0ae2d..0f06b7f 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -116,9 +116,9 @@ if ver https://github.com/ruby/ruby/blob/trunk/ext/fiddle/extconf.rb#L116
   ver = ver.gsub(/-rc\d+/, '') # If ver contains rc version, just ignored.
   ver = (ver.split('.').map(&:to_i) + [0,0])[0,3]
   $defs.push(%{-DRUBY_LIBFFI_MODVERSION=#{ '%d%03d%03d' % ver }})
+  warn "libffi_version: #{ver.join('.')}"
 end
 
-warn "libffi_version: #{ver}"
 case
 when $mswin, $mingw, (ver && (ver <=> [3, 2]) >= 0)
   $defs << "-DUSE_FFI_CLOSURE_ALLOC=1"
-- 
cgit v0.10.2


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

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