summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--appveyor_config.rb15
-rw-r--r--travis_config.rb4
2 files changed, 3 insertions, 16 deletions
diff --git a/appveyor_config.rb b/appveyor_config.rb
index b50a9e4ef..fd14f4a4c 100644
--- a/appveyor_config.rb
+++ b/appveyor_config.rb
@@ -1,23 +1,10 @@
-MRuby::Build.new('debug') do |conf|
- toolchain :visualcpp
- enable_debug
-
- # include all core GEMs
- conf.gembox 'full-core'
- conf.compilers.each do |c|
- c.defines += %w(MRB_GC_STRESS MRB_GC_FIXED_ARENA MRB_METHOD_CACHE)
- end
-
- build_mrbc_exec
-end
-
MRuby::Build.new('full-debug') do |conf|
toolchain :visualcpp
enable_debug
# include all core GEMs
conf.gembox 'full-core'
- conf.cc.defines += %w(MRB_ENABLE_DEBUG_HOOK)
+ conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
conf.enable_test
end
diff --git a/travis_config.rb b/travis_config.rb
index 35a086e1f..a8189dee6 100644
--- a/travis_config.rb
+++ b/travis_config.rb
@@ -19,9 +19,9 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs
conf.gembox 'full-core'
- conf.cc.defines += %w(MRB_ENABLE_DEBUG_HOOK)
- conf.cc.flags += %w(-fsanitize=address,undefined)
+ conf.cc.flags += %w(-Werror=declaration-after-statement -fsanitize=address,undefined)
conf.linker.flags += %W(-fsanitize=address,undefined)
+ conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
conf.enable_test
end