Commit ea10d2d3 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1240 from bovi/patch-1

[doc] Add minimal build configuration
parents 25b8ae96 2991c8b0
...@@ -346,6 +346,25 @@ linking with *build/i386/lib/libmruby_core.a* ...@@ -346,6 +346,25 @@ linking with *build/i386/lib/libmruby_core.a*
---------------------------------------------------------------- ----------------------------------------------------------------
``` ```
## Build Configuration Examples
### Minimal Library
To build a minimal mruby library you need to use the Cross Compiling
feature due to the reason that there are functions (i.e. stdio) which
can't be disabled for the main build.
MRuby::CrossBuild.new('Minimal') do |conf|
toolchain :gcc
conf.cc.defines = %w(DISABLE_STDIO)
conf.bins = []
end
This configuration defines a cross compile build called 'Minimal' which
is using the GCC and compiles for the host machine. It also disables
all usages of stdio and doesn't compile any binaries (i.e. mrbc).
## Test Environment ## Test Environment
mruby's build process includes a test environment. In case you start the testing mruby's build process includes a test environment. In case you start the testing
......
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