Skip to content

Commit 3a033f5

Browse files
committed
Fixed cross-compile build problems in Rakefile.
1 parent c33f278 commit 3a033f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ elsif Concurrent.allow_c_extensions?
4848
## create the compile tasks for the extension gem
4949
require 'rake/extensiontask'
5050

51-
Rake::ExtensionTask.new('ext', EXT_GEMSPEC) do |ext|
51+
Rake::ExtensionTask.new(EXTENSION_NAME, EXT_GEMSPEC) do |ext|
5252
ext.ext_dir = 'ext/concurrent'
5353
ext.lib_dir = 'lib/concurrent'
5454
ext.source_pattern = '*.{c,h}'
55+
ext.cross_compile = true
56+
ext.cross_platform = ['x86-mingw32', 'x64-mingw32']
5557
end
5658

5759
ENV['RUBY_CC_VERSION'].to_s.split(':').each do |ruby_version|

0 commit comments

Comments
 (0)