Skip to content

Commit

Permalink
Recommend to set ExtensionTask#no_native=true for cross build
Browse files Browse the repository at this point in the history
See discussion here: rake-compiler/rake-compiler#171
  • Loading branch information
larskanis committed Dec 20, 2020
1 parent 8b332f2 commit 8a0c7ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ It is intended to be used in conjunction with [rake-compiler's](https://github.c
Your Rakefile should enable cross compilation like so:

exttask = Rake::ExtensionTask.new('my_extension', my_gem_spec) do |ext|
ext.no_native = ENV.key?("RCD_HOST_RUBY_PLATFORM") # Disable native builds within the container
ext.cross_compile = true
ext.cross_platform = %w[x86-mingw32 x64-mingw32 x86-linux x86_64-linux]
end
Expand Down

0 comments on commit 8a0c7ce

Please sign in to comment.