Permalink
Browse files

Fix build error in ruby 1.8.

Apply change of #2978 to :clang, :gcc, :visualcpp toolchains
  • Loading branch information...
val00274 committed Jan 13, 2016
1 parent 8143285 commit d0668cf9c93f3c8e20ef0280408dd7870846883c
Showing with 3 additions and 3 deletions.
  1. +1 −1 tasks/toolchains/clang.rake
  2. +1 −1 tasks/toolchains/gcc.rake
  3. +1 −1 tasks/toolchains/visualcpp.rake
@@ -1,4 +1,4 @@
MRuby::Toolchain.new(:clang) do |conf|
MRuby::Toolchain.new(:clang) do |conf, _params|
toolchain :gcc
[conf.cc, conf.objc, conf.asm].each do |cc|
@@ -1,4 +1,4 @@
MRuby::Toolchain.new(:gcc) do |conf|
MRuby::Toolchain.new(:gcc) do |conf, _params|
[conf.cc, conf.objc, conf.asm].each do |cc|
cc.command = ENV['CC'] || 'gcc'
cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings)]
@@ -1,4 +1,4 @@
MRuby::Toolchain.new(:visualcpp) do |conf|
MRuby::Toolchain.new(:visualcpp) do |conf, _params|
[conf.cc].each do |cc|
cc.command = ENV['CC'] || 'cl.exe'
# C4013: implicit function declaration

0 comments on commit d0668cf

Please sign in to comment.