Upgrade to 1.46.0
[platform/upstream/nghttp2.git] / third-party / mruby / travis_config.rb
1 MRuby::Build.new('full-debug') do |conf|
2   toolchain :gcc
3   enable_debug
4
5   # include all core GEMs
6   conf.gembox 'full-core'
7   conf.cc.flags += %w(-Werror=declaration-after-statement)
8   conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
9
10   conf.enable_test
11 end
12
13 MRuby::Build.new do |conf|
14   toolchain :gcc
15
16   # include all core GEMs
17   conf.gembox 'full-core'
18   conf.cc.flags += %w(-Werror=declaration-after-statement)
19   conf.compilers.each do |c|
20     c.defines += %w(MRB_GC_FIXED_ARENA)
21   end
22   conf.enable_bintest
23   conf.enable_test
24 end
25
26 MRuby::Build.new('cxx_abi') do |conf|
27   toolchain :gcc
28
29   conf.gembox 'full-core'
30   conf.cc.flags += %w(-fpermissive)
31   conf.compilers.each do |c|
32     c.defines += %w(MRB_GC_FIXED_ARENA)
33   end
34   conf.enable_bintest
35   conf.enable_test
36
37   enable_cxx_abi
38
39   build_mrbc_exec
40 end