From 1eeafc27d097f7b1b65b574204253c773556b953 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Sat, 1 Mar 2014 20:00:54 +0900 Subject: define mrbconfs on all compiler --- travis_config.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/travis_config.rb b/travis_config.rb index c8837fb4f..e29a066ec 100644 --- a/travis_config.rb +++ b/travis_config.rb @@ -5,7 +5,9 @@ MRuby::Build.new('debug') do |conf| # include all core GEMs conf.gembox 'full-core' conf.cc.flags += %w(-Werror=declaration-after-statement) - conf.cc.defines += %w(MRB_GC_FIXED_ARENA) + conf.compilers.each do |c| + c.defines += %w(MRB_GC_FIXED_ARENA) + end end MRuby::Build.new do |conf| @@ -14,7 +16,9 @@ MRuby::Build.new do |conf| # include all core GEMs conf.gembox 'full-core' conf.cc.flags += %w(-Werror=declaration-after-statement) - conf.cc.defines = %w(MRB_DEBUG MRB_GC_FIXED_ARENA) + conf.compilers.each do |c| + c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA) + end conf.enable_bintest = true end @@ -23,7 +27,9 @@ MRuby::Build.new('cxx_abi') do |conf| conf.gembox 'full-core' conf.cc.flags += %w(-Werror=declaration-after-statement) - conf.cc.defines = %w(MRB_DEBUG MRB_GC_FIXED_ARENA) + conf.compilers.each do |c| + c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA) + end conf.enable_bintest = true conf.linker.command = 'g++' -- cgit v1.2.3