diff options
| author | KOBAYASHI Shuji <[email protected]> | 2021-02-13 11:53:52 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2021-02-13 11:53:52 +0900 |
| commit | d470163b22f71095b1cbaa040315ca2dacf3c8d5 (patch) | |
| tree | 16f7affad78a6b62ec275ab176a1aa75d46cea93 /doc | |
| parent | adb50df71a4e5c45cdf9c626fb90f95ef2d10b13 (diff) | |
| download | mruby-d470163b22f71095b1cbaa040315ca2dacf3c8d5.tar.gz mruby-d470163b22f71095b1cbaa040315ca2dacf3c8d5.zip | |
Update compile prerequisites in `doc/guides/compile.md` [ci skip]
Bison and gperf are optional.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guides/compile.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/guides/compile.md b/doc/guides/compile.md index d2b58c48c..eba0c87ff 100644 --- a/doc/guides/compile.md +++ b/doc/guides/compile.md @@ -10,19 +10,20 @@ To compile mruby out of the source code you need the following tools: * C Compiler (e.g. `gcc` or `clang`) * Linker (e.g. `gcc` or `clang`) * Archive utility (e.g. `ar`) -* Parser generator (`bison`) * Ruby 2.5 or later (e.g. `ruby` or `jruby`) +Optional: + +* Git (to update mruby source and integrate mrbgems easier) +* C++ compiler (to use mrbgems which include `*.cpp`, `*.cxx`, `*.cc`) +* Bison (to compile `mrbgems/mruby-compiler/core/parse.y`) +* gperf (to compile `mrbgems/mruby-compiler/core/keywords`) + Note that `bison` bundled with MacOS is too old to compile `mruby`. Try `brew install bison` and follow the instruction shown to update the `$PATH` to compile `mruby`. We also encourage to upgrade `ruby` on MacOS in similar manner. -Optional: - -* git (to update mruby source and integrate mrbgems easier) -* C++ compiler (to use GEMs which include \*.cpp, \*.cxx, \*.cc) - ## Build To compile `mruby` with the default build configuration, just invoke `rake` @@ -468,7 +469,6 @@ proceeds like this: * create binary commands according to binary gems (e.g. `mirb` and `mruby`) * copy binaries under `build/host/bin` to `bin` directory - ``` _______________________________________________________________ | Native Compilation for Host System | |
