We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb80b7 commit 528a3a1Copy full SHA for 528a3a1
ext/fiddle/extconf.rb
@@ -114,8 +114,9 @@
114
115
if ver
116
ver = ver.gsub(/-rc\d+/, '') # If ver contains rc version, just ignored.
117
- ver = (ver.split('.') + [0,0])[0,3]
+ ver = (ver.split('.').map(&:to_i) + [0,0])[0,3]
118
$defs.push(%{-DRUBY_LIBFFI_MODVERSION=#{ '%d%03d%03d' % ver }})
119
+ $defs << "-DUSE_FFI_CLOSURE_ALLOC=1" if (ver <=> [3, 2]) >= 0
120
end
121
122
have_header 'sys/mman.h'
@@ -153,9 +154,6 @@
153
154
if libffi
155
$LOCAL_LIBS.prepend("./#{libffi.a} ").strip! # to exts.mk
156
$INCFLAGS.gsub!(/-I#{libffi.dir}/, '-I$(LIBFFI_DIR)')
- $defs << "-DUSE_FFI_CLOSURE_ALLOC=1"
157
-else
158
- have_func('ffi_closure_alloc', ffi_header)
159
160
$INCFLAGS << " -I$(top_srcdir)"
161
create_makefile 'fiddle' do |conf|
0 commit comments