summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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