Skip to content
Permalink
Browse files
remove unnecessary array/each
  • Loading branch information
cremno committed Mar 22, 2016
1 parent 2b0baec commit 611e99e7417695aa70bc3d28d26d219ba29bc7e7
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
MRuby::Toolchain.new(:visualcpp) do |conf, _params|
[conf.cc].each do |cc|
conf.cc do |cc|
cc.command = ENV['CC'] || 'cl.exe'
# C4013: implicit function declaration
cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /we4013 /Zi /MD /O2 /D_CRT_SECURE_NO_WARNINGS)]
@@ -9,7 +9,7 @@ MRuby::Toolchain.new(:visualcpp) do |conf, _params|
cc.compile_options = "%{flags} /Fo%{outfile} %{infile}"
end

[conf.cxx].each do |cxx|
conf.cxx do |cxx|
cxx.command = ENV['CXX'] || 'cl.exe'
cxx.flags = [ENV['CXXFLAGS'] || ENV['CFLAGS'] || %w(/c /nologo /W3 /Zi /MD /O2 /EHs /D_CRT_SECURE_NO_WARNINGS)]
cxx.defines = %w(DISABLE_GEMS MRB_STACK_EXTEND_DOUBLING)

0 comments on commit 611e99e

Please sign in to comment.