Make bintest enabling like other enable_xxx methods.

This commit is contained in:
take_cheeze
2014-04-09 13:59:39 +09:00
parent 63cf7073de
commit 604134e57d
4 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ MRuby::Build.new do |conf|
# conf.file_separator = '/'
# bintest
# conf.enable_bintest = true
# conf.enable_bintest
end
# Define cross build settings
+1 -1
View File
@@ -193,7 +193,7 @@ If you want a temporary files use `tempfile` module of CRuby instead of ```/tmp/
You can enable it with following:
conf.enable_bintest = true
conf.enable_bintest
### C++ ABI
+10 -1
View File
@@ -43,8 +43,9 @@ module MRuby
end
include Rake::DSL
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_writer :enable_bintest
COMPILERS = %w(cc cxx objc asm)
COMMANDS = COMPILERS + %w(linker archiver yacc gperf git exts mrbc)
@@ -111,6 +112,14 @@ module MRuby
@cxx_abi_enabled = true
end
def enable_bintest
@enable_bintest = true
end
def bintest_enabled?
@enable_bintest
end
def toolchain(name)
tc = Toolchain.toolchains[name.to_s]
fail "Unknown #{name} toolchain" unless tc
+2 -2
View File
@@ -19,7 +19,7 @@ MRuby::Build.new do |conf|
conf.compilers.each do |c|
c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA)
end
conf.enable_bintest = true
conf.enable_bintest
end
MRuby::Build.new('cxx_abi') do |conf|
@@ -30,7 +30,7 @@ MRuby::Build.new('cxx_abi') do |conf|
conf.compilers.each do |c|
c.defines += %w(MRB_DEBUG MRB_GC_FIXED_ARENA)
end
conf.enable_bintest = true
conf.enable_bintest
enable_cxx_abi
end