diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-22 12:05:03 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-22 12:05:03 +0900 |
| commit | cd047b2989926a170eb0d8a652305970fd83ec1e (patch) | |
| tree | 14b2dd1e7923853a1129d6e1985cb109cbd0639b /build_config | |
| parent | 68cf8346cd250c1a47a807f19e1289910f55ecb7 (diff) | |
| parent | b2c3ab8f3fbc3c30b097a978f6232c1e2d00d281 (diff) | |
| download | mruby-cd047b2989926a170eb0d8a652305970fd83ec1e.tar.gz mruby-cd047b2989926a170eb0d8a652305970fd83ec1e.zip | |
Merge pull request #5385 from shuujii/add-configuration-for-MinGW-cross-compilation
Add configuration for MinGW cross compilation [ci skip]
Diffstat (limited to 'build_config')
| -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 |
