Commit 2f7efda3 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #3081 from val00274/fix_toolchains_params

Fix build error in ruby 1.8.
parents 81432859 d0668cf9
MRuby::Toolchain.new(:clang) do |conf|
MRuby::Toolchain.new(:clang) do |conf, _params|
toolchain :gcc
[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|
cc.command = ENV['CC'] || 'gcc'
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|
cc.command = ENV['CC'] || 'cl.exe'
# 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