vendor/mruby-source/build_config/cross-mingw.rb
raw| 1 | # |
| 2 | # Ubuntu 20.04 requires at least `gcc-mingw-w64-x86-64` package as a |
| 3 | # cross compiler. |
| 4 | # |
| 5 | |
| 6 | MRuby::CrossBuild.new("cross-mingw") do |conf| |
| 7 | conf.toolchain :gcc |
| 8 | conf.host_target = "x86_64-w64-mingw32" # required for `for_windows?` used by `mruby-socket` gem |
| 9 | conf.cc.command = "#{conf.host_target}-gcc-posix" |
| 10 | conf.linker.command = conf.cc.command |
| 11 | conf.archiver.command = "#{conf.host_target}-gcc-ar" |
| 12 | conf.exts.executable = ".exe" |
| 13 | conf.gembox "default" |
| 14 | end |