Skip to content

Commit

Permalink
Merge branch 'headius-jruby_ext'
Browse files Browse the repository at this point in the history
  • Loading branch information
larskanis committed Mar 30, 2020
2 parents 4a5cf10 + a5bc0f3 commit 3790ea6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ffi.rb
Expand Up @@ -8,6 +8,10 @@

require 'ffi/ffi'

elsif RUBY_ENGINE == 'jruby'
JRuby::Util.load_ext("org.jruby.ext.ffi.FFIService")
require 'ffi/ffi'

else
# Remove the ffi gem dir from the load path, then reload the internal ffi implementation
$LOAD_PATH.delete(File.dirname(__FILE__))
Expand Down

0 comments on commit 3790ea6

Please sign in to comment.