From 172cd281ba221e02ef293f85d25ebe7caed8f314 Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Fri, 22 Nov 2013 22:17:01 +0200 Subject: Automatically detect toolchain if it is visualcpp, and hence we drop vs2010.rake altogether - it’s no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_config.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build_config.rb') diff --git a/build_config.rb b/build_config.rb index fce424686..83dc01940 100644 --- a/build_config.rb +++ b/build_config.rb @@ -1,6 +1,12 @@ MRuby::Build.new do |conf| # load specific toolchain settings - toolchain :gcc + + # Gets set by the VS command prompts. + if ENV['VisualStudioVersion'] + toolchain :visualcpp + else + toolchain :gcc + end # Use mrbgems # conf.gem 'examples/mrbgems/ruby_extension_example' -- cgit v1.2.3