diff options
| author | Per Lundberg <[email protected]> | 2013-11-22 22:17:01 +0200 |
|---|---|---|
| committer | Per Lundberg <[email protected]> | 2013-11-22 22:17:01 +0200 |
| commit | 172cd281ba221e02ef293f85d25ebe7caed8f314 (patch) | |
| tree | 83bf2fe39f5aa3f0a72554fead5e8bac2b134a0f /build_config.rb | |
| parent | 07b8a5b0427c21518c7b7cf465197dc310b9d3b0 (diff) | |
| download | mruby-172cd281ba221e02ef293f85d25ebe7caed8f314.tar.gz mruby-172cd281ba221e02ef293f85d25ebe7caed8f314.zip | |
Automatically detect toolchain if it is visualcpp, and hence we drop vs2010.rake altogether - it’s no longer needed.
Diffstat (limited to 'build_config.rb')
| -rw-r--r-- | build_config.rb | 8 |
1 files changed, 7 insertions, 1 deletions
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' |
