summaryrefslogtreecommitdiffhomepage
path: root/travis_config.rb
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-03-01 20:00:54 +0900
committertake_cheeze <[email protected]>2014-03-01 20:05:31 +0900
commit1eeafc27d097f7b1b65b574204253c773556b953 (patch)
treeb0176295099e4631d820e08d686aa5a52e5c390f /travis_config.rb
parent54f9ca36fd2b72bb2710a8f447f747a8b6962065 (diff)
downloadmruby-1eeafc27d097f7b1b65b574204253c773556b953.tar.gz
mruby-1eeafc27d097f7b1b65b574204253c773556b953.zip
define mrbconfs on all compiler
Diffstat (limited to 'travis_config.rb')
-rw-r--r--travis_config.rb12
1 files 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++'