diff options
| -rw-r--r-- | build_config/cross-mingw.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build_config/cross-mingw.rb b/build_config/cross-mingw.rb new file mode 100644 index 000000000..63d267d6a --- /dev/null +++ b/build_config/cross-mingw.rb @@ -0,0 +1,14 @@ +# +# Ubuntu 20.04 requires at least `gcc-mingw-w64-x86-64` package as a +# cross compiler. +# + +MRuby::CrossBuild.new("cross-mingw") do |conf| + conf.toolchain :gcc + conf.host_target = "x86_64-w64-mingw32" # required for `for_windows?` used by `mruby-socket` gem + conf.cc.command = "#{conf.host_target}-gcc-posix" + conf.linker.command = conf.cc.command + conf.archiver.command = "#{conf.host_target}-gcc-ar" + conf.exts.executable = ".exe" + conf.gembox "default" +end |
