Commit 1eeafc27 authored by take_cheeze's avatar take_cheeze

define mrbconfs on all compiler

parent 54f9ca36
...@@ -5,7 +5,9 @@ MRuby::Build.new('debug') do |conf| ...@@ -5,7 +5,9 @@ MRuby::Build.new('debug') do |conf|
# include all core GEMs # include all core GEMs
conf.gembox 'full-core' conf.gembox 'full-core'
conf.cc.flags += %w(-Werror=declaration-after-statement) 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 end
MRuby::Build.new do |conf| MRuby::Build.new do |conf|
...@@ -14,7 +16,9 @@ MRuby::Build.new do |conf| ...@@ -14,7 +16,9 @@ MRuby::Build.new do |conf|
# include all core GEMs # include all core GEMs
conf.gembox 'full-core' conf.gembox 'full-core'
conf.cc.flags += %w(-Werror=declaration-after-statement) 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.enable_bintest = true
end end
...@@ -23,7 +27,9 @@ MRuby::Build.new('cxx_abi') do |conf| ...@@ -23,7 +27,9 @@ MRuby::Build.new('cxx_abi') do |conf|
conf.gembox 'full-core' conf.gembox 'full-core'
conf.cc.flags += %w(-Werror=declaration-after-statement) 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.enable_bintest = true
conf.linker.command = 'g++' conf.linker.command = 'g++'
......
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