summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-21 16:33:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-21 16:38:29 +0900
commit318be1cb2f9c6f04403c063a5618c6267012ee51 (patch)
treeca6a293f5a38dc5a15ab8631af1a93b8903bacfc
parentb2041c8b709ba56774005340a4bd2096f4c119aa (diff)
Show libffi version only if set
-rw-r--r--ext/fiddle/extconf.rb2
1 files changed, 1 insertions, 1 deletions
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
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"