Skip to content

Instantly share code, notes, and snippets.

@shuujii
Created March 13, 2021 13:41
Show Gist options
  • Select an option

  • Save shuujii/675a316b4799f39820512897a2b01829 to your computer and use it in GitHub Desktop.

Select an option

Save shuujii/675a316b4799f39820512897a2b01829 to your computer and use it in GitHub Desktop.
#
# 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"
conf.cc.command = "#{conf.host_target}-gcc-posix"
conf.linker.command = conf.cc.command
conf.archiver.command = "x86_64-w64-mingw32-gcc-ar"
conf.exts.executable = ".exe"
conf.gembox "full-core"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment