0
0

More than 5 years have passed since last update.

Windows ネイティブなmruby.exeをmsys2で作る

Last updated at Posted at 2016-04-22

mruby を githubから取ってきて、build_config.rbを修正。

build_config.rb
MRuby::Build.new do |conf|
  #
  # ... 中略 ...
  #
  conf.cc do |cc|
    cc.command = ENV['CC'] || 'i686-w64-mingw32-gcc'
  end

  conf.linker do |linker|
    linker.cmmand = ENV['LD'] || 'i686-w64-mingw32-gcc'
  end
end

あとは、コマンドプロンプトからmakeすればネイティブなmruby.exeを作れる。

Mruby::Build毎に上記修正が必要。

make testで同じようにしたい場合はMruby::Build.new('test')の中を修正すること。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0