Skip to content

Commit

Permalink
Merge branch 'jruby_ext' of https://github.com/headius/ffi into headi…
Browse files Browse the repository at this point in the history
…us-jruby_ext
  • Loading branch information
larskanis committed Mar 30, 2020
2 parents 4a5cf10 + 83c729f commit a5bc0f3
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 a5bc0f3

Please sign in to comment.