Skip to content

Commit

Permalink
Merge pull request mruby#3182 from sdottaka/fix-broken-msvc-build
Browse files Browse the repository at this point in the history
Fix broken msvc build
  • Loading branch information
matz committed Jul 25, 2016
2 parents e635dc2 + fb1c4b3 commit 32ad74f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,13 @@
end

MRuby::Build.new('bench') do |conf|
toolchain :gcc

conf.cc.flags << '-O3'
# Gets set by the VS command prompts.
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR']
toolchain :visualcpp
else
toolchain :gcc
conf.cc.flags << '-O3'
end

conf.gembox 'default'
end
Expand Down

0 comments on commit 32ad74f

Please sign in to comment.