mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
d432688d9f
Currently, there are build configuration files for CI, `travis.rb` and `appveyor.rb`, but they are used for GCC/Clang and MSVC, not for Travis CI and Appveyor, respectively. Therefore, rename them to `gcc-clang.rb` and `msvc.rb`, respectively, and move them under `build_config/ci/` to clarify that they are for CI.
19 lines
459 B
Ruby
19 lines
459 B
Ruby
def setup_option(conf)
|
|
conf.cc.flags[0].delete("/Zi") unless ENV['CFLAGS']
|
|
conf.cxx.flags[0].delete("/Zi") unless ENV['CFLAGS'] || ENV['CXXFLAGS']
|
|
conf.linker.flags << "/DEBUG:NONE" unless ENV['LDFLAGS']
|
|
end
|
|
|
|
MRuby::Build.new do |conf|
|
|
toolchain :visualcpp
|
|
|
|
# include all core GEMs
|
|
conf.gembox 'full-core'
|
|
conf.compilers.each do |c|
|
|
c.defines += %w(MRB_GC_FIXED_ARENA)
|
|
end
|
|
setup_option(conf)
|
|
conf.enable_bintest
|
|
conf.enable_test
|
|
end
|