Commit 604134e5 authored by take_cheeze's avatar take_cheeze

Make bintest enabling like other `enable_xxx` methods.

parent 63cf7073
...@@ -80,7 +80,7 @@ MRuby::Build.new do |conf| ...@@ -80,7 +80,7 @@ MRuby::Build.new do |conf|
# conf.file_separator = '/' # conf.file_separator = '/'
# bintest # bintest
# conf.enable_bintest = true # conf.enable_bintest
end end
# Define cross build settings # Define cross build settings
......
...@@ -193,7 +193,7 @@ If you want a temporary files use `tempfile` module of CRuby instead of ```/tmp/ ...@@ -193,7 +193,7 @@ If you want a temporary files use `tempfile` module of CRuby instead of ```/tmp/
You can enable it with following: You can enable it with following:
conf.enable_bintest = true conf.enable_bintest
### C++ ABI ### C++ ABI
......
...@@ -43,8 +43,9 @@ module MRuby ...@@ -43,8 +43,9 @@ module MRuby
end end
include Rake::DSL include Rake::DSL
include LoadGems include LoadGems
attr_accessor :name, :bins, :exts, :file_separator, :build_dir, :gem_clone_dir, :enable_bintest attr_accessor :name, :bins, :exts, :file_separator, :build_dir, :gem_clone_dir
attr_reader :libmruby, :gems attr_reader :libmruby, :gems
attr_writer :enable_bintest
COMPILERS = %w(cc cxx objc asm) COMPILERS = %w(cc cxx objc asm)
COMMANDS = COMPILERS + %w(linker archiver yacc gperf git exts mrbc) COMMANDS = COMPILERS + %w(linker archiver yacc gperf git exts mrbc)
...@@ -111,6 +112,14 @@ module MRuby ...@@ -111,6 +112,14 @@ module MRuby
@cxx_abi_enabled = true @cxx_abi_enabled = true
end end
def enable_bintest
@enable_bintest = true
end
def bintest_enabled?
@enable_bintest
end
def toolchain(name) def toolchain(name)
tc = Toolchain.toolchains[name.to_s] tc = Toolchain.toolchains[name.to_s]
fail "Unknown #{name} toolchain" unless tc fail "Unknown #{name} toolchain" unless tc
......
...@@ -19,7 +19,7 @@ MRuby::Build.new do |conf| ...@@ -19,7 +19,7 @@ MRuby::Build.new do |conf|
conf.compilers.each do |c| conf.compilers.each do |c|
c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA) c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA)
end end
conf.enable_bintest = true conf.enable_bintest
end end
MRuby::Build.new('cxx_abi') do |conf| MRuby::Build.new('cxx_abi') do |conf|
...@@ -30,7 +30,7 @@ MRuby::Build.new('cxx_abi') do |conf| ...@@ -30,7 +30,7 @@ MRuby::Build.new('cxx_abi') do |conf|
conf.compilers.each do |c| conf.compilers.each do |c|
c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA) c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA)
end end
conf.enable_bintest = true conf.enable_bintest
enable_cxx_abi enable_cxx_abi
end end
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