Skip to content

Commit

Permalink
remove unnecessary array/each
Browse files Browse the repository at this point in the history
  • Loading branch information
cremno committed Mar 22, 2016
1 parent 2b0baec commit 611e99e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/toolchains/visualcpp.rake
Original file line number Diff line number Diff line change
@@ -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)]
Expand All @@ -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)
Expand Down

0 comments on commit 611e99e

Please sign in to comment.