mrubyを超漢字で動作させる
修訂 | 83922d0bbb7de894380fa6b33e7d75061114aa59 (tree) |
---|---|
時間 | 2015-10-16 00:18:36 |
作者 | Yukihiro "Matz" Matsumoto <matz@ruby...> |
Commiter | Yukihiro "Matz" Matsumoto |
use visualcpp toolchain for test as well
@@ -109,7 +109,12 @@ MRuby::Build.new('host-debug') do |conf| | ||
109 | 109 | end |
110 | 110 | |
111 | 111 | MRuby::Build.new('test') do |conf| |
112 | - toolchain :gcc | |
112 | + # Gets set by the VS command prompts. | |
113 | + if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] | |
114 | + toolchain :visualcpp | |
115 | + else | |
116 | + toolchain :gcc | |
117 | + end | |
113 | 118 | |
114 | 119 | enable_debug |
115 | 120 | conf.enable_bintest |