diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-29 10:42:56 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-29 10:42:56 +0900 |
| commit | 76eafa46082e43b33b107e845ebbfaa6ebae3155 (patch) | |
| tree | ff07848865734b6246a82fb039b7fe7ed6685fd1 /doc/mruby3.md | |
| parent | 78d185efb9ee62ae38b3f97c53372ae3a44fef51 (diff) | |
| parent | 81c21088196fd92d08c253efc2feb8dbead88acf (diff) | |
| download | mruby-76eafa46082e43b33b107e845ebbfaa6ebae3155.tar.gz mruby-76eafa46082e43b33b107e845ebbfaa6ebae3155.zip | |
Merge pull request #5098 from shuujii/revert-MRUBY_TARGET-mechanism
Revert `MRUBY_TARGET` mechanism; ref #5096
Diffstat (limited to 'doc/mruby3.md')
| -rw-r--r-- | doc/mruby3.md | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/doc/mruby3.md b/doc/mruby3.md index 029c9887e..e611a1b16 100644 --- a/doc/mruby3.md +++ b/doc/mruby3.md @@ -3,45 +3,29 @@ User visible changes in `mruby3` # Build System -You can specify `TARGET` option to `rake` via a command line -option, or via an environment variable, e.g. - -`rake TARGET=host all` - -or - -`TARGET=host rake all` - -It's much easier to switch multiple targets than the -previous `build_config.rb` system. - ## `presym` target The first compilation of `mruby` may require generation of a static symbol table named `build/presym`. You can generate the table by `rake gensym`. -## `target` directory +## `build_config` directory -Build target specification files are loaded from `target` -directory. The default `TARGET` is `host` which is described -in `target/host.rb`. There are many other targets for example: +Typical build configuration files are located in `build_config` +directory. For examples: * `host-gprof`: compiles with `gprof` for performance tuning * `host-m32`: compiles in gcc 32bit mode on 64bit platforms * `boxing`: compiles all three boxing options * `clang-asan`: compiles with `clang`'s Address Sanitizer -`target/host.rb` comes with comments to help writing a new -target description. - -If you want to have your target description out of the -source tree, you can specify the path to the description -file in `MRUBY_CONFIG`. +`build_config/${MRUBY_CONFIG}.rb` is used if the path specified +in `MRUBY_CONFIG` doesn't exist, so you can specify it as +`rake MRUBY_CONFIG=boxing`. -# Build Target Contribution +# Build Configuration Contribution -When you write a new target description, please +When you write a new build configuration description, please contribute. We welcome your contribution as a GitHub pull-request. |
