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

Show libffi version only if set

This commit is contained in:
Nobuyoshi Nakada 2020-03-21 16:33:18 +09:00
parent b2041c8b70
commit 318be1cb2f
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

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