Browse files

Merge pull request #1240 from bovi/patch-1

[doc] Add minimal build configuration
  • Loading branch information...
2 parents 25b8ae9 + 2991c8b commit ea10d2d3d6f6c6096f7f9f36443a8bcb121e7c6b @matz matz committed May 8, 2013
Showing with 19 additions and 0 deletions.
  1. +19 −0 doc/compile/
@@ -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.
+'Minimal') do |conf|
+ toolchain :gcc
+ 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
mruby's build process includes a test environment. In case you start the testing

0 comments on commit ea10d2d

Please sign in to comment.