Skip to content

Commit

Permalink
Fix build error in ruby 1.8.
Browse files Browse the repository at this point in the history
Apply change of #2978 to :clang, :gcc, :visualcpp toolchains
  • Loading branch information
val00274 committed Jan 13, 2016
1 parent 8143285 commit d0668cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/toolchains/clang.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|
Expand Down
2 changes: 1 addition & 1 deletion tasks/toolchains/gcc.rake
@@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tasks/toolchains/visualcpp.rake
@@ -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
Expand Down

0 comments on commit d0668cf

Please sign in to comment.