diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-21 16:33:18 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-21 16:38:29 +0900 |
commit | 318be1cb2f9c6f04403c063a5618c6267012ee51 (patch) | |
tree | ca6a293f5a38dc5a15ab8631af1a93b8903bacfc /ext/fiddle/extconf.rb | |
parent | b2041c8b709ba56774005340a4bd2096f4c119aa (diff) | |
download | ruby-318be1cb2f9c6f04403c063a5618c6267012ee51.tar.gz |
Show libffi version only if set
Diffstat (limited to 'ext/fiddle/extconf.rb')
-rw-r--r-- | ext/fiddle/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index ad0ae2d3b7..0f06b7ff69 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" |