diff options
| author | KOBAYASHI Shuji <[email protected]> | 2021-03-21 16:43:04 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2021-03-21 16:43:04 +0900 |
| commit | b2c3ab8f3fbc3c30b097a978f6232c1e2d00d281 (patch) | |
| tree | ad95c692c717521e324a8d641e47fcc6eba78d9f /build_config | |
| parent | e21f293de5d32af9349cef174df9f1e536adec16 (diff) | |
| download | mruby-b2c3ab8f3fbc3c30b097a978f6232c1e2d00d281.tar.gz mruby-b2c3ab8f3fbc3c30b097a978f6232c1e2d00d281.zip | |
Add configuration for MinGW cross compilation [ci skip]
With this cross compiler configuration, all tests for full-core gembox on
Windows on GitHub Actions were successful.
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 |
