Skip to content

Commit

Permalink
Show libffi version only if set
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Mar 21, 2020
1 parent b2041c8 commit 318be1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/fiddle/extconf.rb
Expand Up @@ -116,9 +116,9 @@
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"
Expand Down

0 comments on commit 318be1c

Please sign in to comment.