Commit d0668cf9 authored by asatou's avatar asatou

Fix build error in ruby 1.8.

Apply change of #2978 to :clang, :gcc, :visualcpp toolchains
parent 81432859
MRuby::Toolchain.new(:clang) do |conf| MRuby::Toolchain.new(:clang) do |conf, _params|
toolchain :gcc toolchain :gcc
[conf.cc, conf.objc, conf.asm].each do |cc| [conf.cc, conf.objc, conf.asm].each do |cc|
......
MRuby::Toolchain.new(:gcc) do |conf| MRuby::Toolchain.new(:gcc) do |conf, _params|
[conf.cc, conf.objc, conf.asm].each do |cc| [conf.cc, conf.objc, conf.asm].each do |cc|
cc.command = ENV['CC'] || 'gcc' cc.command = ENV['CC'] || 'gcc'
cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings)] cc.flags = [ENV['CFLAGS'] || %w(-g -std=gnu99 -O3 -Wall -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wwrite-strings)]
......
MRuby::Toolchain.new(:visualcpp) do |conf| MRuby::Toolchain.new(:visualcpp) do |conf, _params|
[conf.cc].each do |cc| [conf.cc].each do |cc|
cc.command = ENV['CC'] || 'cl.exe' cc.command = ENV['CC'] || 'cl.exe'
# C4013: implicit function declaration # C4013: implicit function declaration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment