Skip to content

Commit

Permalink
fix: Fix the native extension for OSX
Browse files Browse the repository at this point in the history
Requiring the .so file doesn't work on OSX, apparently (see #12),
so `Rutie.init` *is* necessary (danielpclark/rutie#142).

Is the following documentation is Linux specific?
https://docs.ruby-lang.org/en/3.0/extension_rdoc.html

Anyway, since we use Thermite we need to resolve the extension at
`lib/tantiny.so`, hence `lib_path` and `lib_prefix` options.
  • Loading branch information
baygeldin committed Apr 21, 2022
1 parent 2de2bb6 commit 4026e8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/tantiny.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
require "tantiny/query"
require "tantiny/index"

require_relative "tantiny.so"

module Tantiny
Rutie.new(:tantiny, lib_path: __dir__, lib_prefix: "").init("Init_tantiny", __dir__)
end

0 comments on commit 4026e8f

Please sign in to comment.