From d470163b22f71095b1cbaa040315ca2dacf3c8d5 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sat, 13 Feb 2021 11:53:52 +0900 Subject: Update compile prerequisites in `doc/guides/compile.md` [ci skip] Bison and gperf are optional. --- doc/guides/compile.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc') 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 | -- cgit v1.2.3