We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b4a9e4 commit e76c43bCopy full SHA for e76c43b
1 file changed
ext/ffi_c/extconf.rb
@@ -39,8 +39,8 @@ def system_libffi_usable?
39
have_header('shlwapi.h')
40
have_func('rb_thread_call_without_gvl') || abort("Ruby C-API function `rb_thread_call_without_gvl` is missing")
41
have_func('ruby_native_thread_p')
42
- if RbConfig::CONFIG['host_os'].downcase !~ /darwin/ || RUBY_VERSION >= "2.3.0"
43
- # On OSX ruby_thread_has_gvl_p is detected but fails at runtime for ruby < 2.3.0
+ if RUBY_VERSION >= "2.3.0"
+ # On OSX and Linux ruby_thread_has_gvl_p() is detected but fails at runtime for ruby < 2.3.0
44
have_func('ruby_thread_has_gvl_p')
45
end
46
0 commit comments