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
1029be3c
Commit
1029be3c
authored
Mar 05, 2014
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update compilation notes
parent
47d1701f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
doc/compile/README.md
doc/compile/README.md
+47
-0
No files found.
doc/compile/README.md
View file @
1029be3c
...
...
@@ -183,6 +183,39 @@ If you want mrbtest.a only, You should set ```conf.build_mrbtest_lib_only```
conf.build_mrbtest_lib_only
### Bintest
Tests for mrbgem tools using CRuby.
To have bintests place
*
.rb scripts to
```bintest/```
directory of mrbgems.
See
```mruby-bin-*/bintest/*.rb```
if you need examples.
If you want a temporary files use
`tempfile`
module of CRuby instead of
```/tmp/```
.
You can enable it with following:
conf.enable_bintest = true
### C++ ABI
mruby can use C++ exception to raise exception internally.
It is called C++ ABI mode.
By using C++ exception it can release C++ stack object correctly.
Whenever you mix C++ code C++ ABI mode would be enabled automatically.
If you need to enable C++ ABI mode explicity add the following:
conf.enable_cxx_abi
### Debugging mode
To enable debugging mode add the following:
conf.enable_debug
When debugging mode is enabled
*
Macro
```MRB_DEBUG```
would be defined.
*
Which means
```mrb_assert()```
macro is enabled.
*
Debug information of irep would be generated by
```mrbc```
.
*
Because
```-g```
flag would be added to
```mrbc```
runner.
*
You can have better backtrace of mruby scripts with this.
## Cross-Compilation
...
...
@@ -202,6 +235,20 @@ like this:
All configuration options of ```MRuby::Build``` can also be used
in ```MRuby::CrossBuild```.
### Mrbtest in Cross-Compilation
In cross compilation, you can run ```mrbtest``` on emulator if
you have it by changing configuration of test runner.
conf.test_runner do |t|
t.command = ... # set emulator. this value must be non nil or false
t.flags = ... # set flags of emulator
def t.run(bin) # override `run` if you need to change the behavior of it
... # `bin` is the full path of mrbtest
end
end
## Build process
During the build process the directory *build* will be created in the
...
...
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