Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
604134e5
Commit
604134e5
authored
Apr 09, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make bintest enabling like other `enable_xxx` methods.
parent
63cf7073
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
build_config.rb
build_config.rb
+1
-1
doc/compile/README.md
doc/compile/README.md
+1
-1
tasks/mruby_build.rake
tasks/mruby_build.rake
+10
-1
travis_config.rb
travis_config.rb
+2
-2
No files found.
build_config.rb
View file @
604134e5
...
...
@@ -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
...
...
doc/compile/README.md
View file @
604134e5
...
...
@@ -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
...
...
tasks/mruby_build.rake
View file @
604134e5
...
...
@@ -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
...
...
travis_config.rb
View file @
604134e5
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment