summaryrefslogtreecommitdiffhomepage
path: root/build_config.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-10-16 00:18:36 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-10-16 00:18:36 +0900
commit83922d0bbb7de894380fa6b33e7d75061114aa59 (patch)
treee41cbae3de2c39134549de8fa07dfddd99c72dbc /build_config.rb
parentfd8634d26b9dc98b60e29c031dca7d7aa0755d4c (diff)
downloadmruby-83922d0bbb7de894380fa6b33e7d75061114aa59.tar.gz
mruby-83922d0bbb7de894380fa6b33e7d75061114aa59.zip
use visualcpp toolchain for test as well
Diffstat (limited to 'build_config.rb')
-rw-r--r--build_config.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/build_config.rb b/build_config.rb
index 96b1d4684..1db3aec4e 100644
--- a/build_config.rb
+++ b/build_config.rb
@@ -109,7 +109,12 @@ MRuby::Build.new('host-debug') do |conf|
end
MRuby::Build.new('test') do |conf|
- toolchain :gcc
+ # Gets set by the VS command prompts.
+ if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
+ toolchain :visualcpp
+ else
+ toolchain :gcc
+ end
enable_debug
conf.enable_bintest