Skip to content

Commit

Permalink
Attempt compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorthurlow committed Jan 12, 2024
1 parent ee0c26d commit a83c201
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ require "rb_sys/extensiontask"

task build: :compile

RbSys::ExtensionTask.new("rust_json_schema") do |ext|
spec = Gem::Specification.load("rust_json_schema.gemspec")

RbSys::ExtensionTask.new("rust_json_schema", spec) do |ext|
ext.lib_dir = "lib/rust_json_schema"

ext.cross_compile = true
ext.cross_platform = %w[x86-mingw32 x64-mingw-ucrt x64-mingw32 x86-linux x86_64-linux x86_64-darwin arm64-darwin]
end

task default: %i[compile spec standard]
3 changes: 3 additions & 0 deletions rust_json_schema.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ Gem::Specification.new do |spec|

# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
#
spec.add_development_dependency "rake-compiler"
spec.add_development_dependency "rake-compiler-dock"
end

0 comments on commit a83c201

Please sign in to comment.