diff options
author | Sutou Kouhei <[email protected]> | 2024-10-10 14:37:12 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-16 11:24:25 +0900 |
commit | 8d127c9b592c58c858a57af6a4a0d805491b5d2b (patch) | |
tree | 3d54e6c2a4e7d23194a993214112524563eb7ce5 /ext/fiddle/extconf.rb | |
parent | bbd5b8ddae7b3ff7205866d54cf8aca065a6d9bd (diff) |
Use JRuby implementation for TruffleRuby (#149)
Fix GH-145
Rename `lib/fiddle/jruby.rb` to `lib/fiddle/ffi_backend.rb` as a generic
ffi gem API based implementation.
JRuby and TruffleRuby use `lib/fiddle/ffi_backend.rb`.
---------
Co-authored-by: Benoit Daloze <[email protected]>
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 f062d1fc76..2899980657 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true require 'mkmf' -if RUBY_ENGINE == "jruby" +unless RUBY_ENGINE == "ruby" File.write('Makefile', dummy_makefile("").join) return end |