summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
AgeCommit message (Collapse)Author
2020-10-14Avoid using C struct dump for test Ruby code.Yukihiro "Matz" Matsumoto
Files under `test/t` and `mrbgem/*/test` are for tests, not for actual execution. So symbols in those files need not to be pre-allocated. This change slightly reduce the memory consumption.
2020-10-12Remove `host-debug` internal target.Yukihiro "Matz" Matsumoto
Target `host-debug` to use `host` internal target with debugging configuration.
2020-10-12Remove duplicated patternKondo Uchio
2020-10-12Scan ruby files in directoriesUchio Kondo
2020-10-12Exact match to allowed method/variable namesKondo Uchio
2020-10-12Ensure exact match for symbols like foo!/foo?/foo=Uchio Kondo
e.g. symbols like "foo[]=" make invalid C codes
2020-10-12Skip C comments from scan target; close #5072Yukihiro "Matz" Matsumoto
The original PR was skipping Ruby comments as well, but caused some issues in test suites.
2020-10-12Scan source code lines from downloaded mrbgems; fix #5071Yukihiro "Matz" Matsumoto
2020-10-12Update `Rakefile`.Yukihiro "Matz" Matsumoto
So that you can omit `host` target. Now `host-debug` works.
2020-10-12Allow `MRUBY_CONFIG` to specify target file out of source tree.Yukihiro "Matz" Matsumoto
2020-10-12Generate C struct from `irep` instead of binary dump.Yukihiro "Matz" Matsumoto
2020-10-12Scan more symbols from Ruby files by `rake gensym`.Yukihiro "Matz" Matsumoto
2020-10-12Remove remaining `chomp:true` option from `Rakefile`.Yukihiro "Matz" Matsumoto
2020-10-12Avoid using `chomp:true` option to `File.readlines`.Yukihiro "Matz" Matsumoto
The option is not available in the old version of Ruby.
2020-10-12Stringify non C identifier symbols to stop macro errors by old gcc.Yukihiro "Matz" Matsumoto
2020-10-12Add `Rakefile` to `build/presym` dependency.Yukihiro "Matz" Matsumoto
2020-10-12Add dependency from `all` to `gensym`.Yukihiro "Matz" Matsumoto
You don't need to invoke `rake gensym` explicitly any longer.
2020-10-12Add operators to `presym` from `Rakefile`.Yukihiro "Matz" Matsumoto
2020-10-12Rename `MRB_OPSYM()` to `MRB_QSYM()`.Yukihiro "Matz" Matsumoto
Where `QSYM` means quoted symbols, which cannot be represented C symbols, so specify aliases instead. - operators: name of the operation, e.g. add for `+` - predicates: add `_p` suffix instead of `?` - bang methods: add `_b` suffix instead of `!` - instance variables: add `a_` prefix instead of `@` - global variables: add `d_` prefix instead of `@` - class variables: unsupported; don't use them
2020-10-12Simplified `Rakefile`.Yukihiro "Matz" Matsumoto
2020-10-12Create `MRB_OPSYM()` macro to refer symbols corresponding operators.Yukihiro "Matz" Matsumoto
For example, `MRB_OPSYM(add)` refers a symbol for `+`.
2020-10-12Create `build` directory first before `gensym`.Yukihiro "Matz" Matsumoto
2020-10-12Remove unused variable from `Rakefile`.Yukihiro "Matz" Matsumoto
2020-10-12Use `File.open` instead of `File.write` shortcut.Yukihiro "Matz" Matsumoto
2020-10-12Remove `presym` files before writing just to make sure.Yukihiro "Matz" Matsumoto
2020-10-12Build process updated:Yukihiro "Matz" Matsumoto
You have to specify `TARGET` to specify a configuration, e.g. ``` rake TARGET=host-debug all test ``` When you port `mruby` to a new configuration: 1. copy an existing configuration under `target` directory 2. modify the new configuration file 3. build using the new configuration 4. send PR if you please
2020-10-12Keep `build/presym` through `rake clean`.Yukihiro "Matz" Matsumoto
2020-10-12Prepend `gensym` rule to `depfiles`.Yukihiro "Matz" Matsumoto
2020-10-12Remove `build/presym` and `build/presym.inc` on `rake clean`.Yukihiro "Matz" Matsumoto
2020-10-12Scan `.rb` files as well to generate `presym` table.Yukihiro "Matz" Matsumoto
2020-10-12Update Rakefile to generate presym.Yukihiro "Matz" Matsumoto
2020-10-12Generate a table for preallocated symbols (`presym`).Yukihiro "Matz" Matsumoto
`presym` are symbols used in the C source files. `gensym` rake rule scans the entire C source files and collect symbols referenced from them.
2019-12-28Use `Rake.verbose` instead of `$verbose` and `$pp_show` in build scriptsKOBAYASHI Shuji
The incompatibility that the commands of `FileUtils` origin output verbose by default due to the changes in d8a5163b and 26e6e75b is also fixed.
2019-12-27Merge pull request #4910 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-Rake-DSL-instead-of-commands-of-FileUtils Use Rake DSL instead of commands of `FileUtils`
2019-12-27Use Rake DSL instead of commands of `FileUtils`KOBAYASHI Shuji
- Respect `--verbose(-v)` and `--dry-run(-n)` options. - Silence warnings to keyword arguments on Ruby 2.7.
2019-12-27Support `-v` flag of `rake`; close #4887Yukihiro "Matz" Matsumoto
The patch was originally written by @take-cheese. I have fixed the conflict caused by `minirake` deletion - @matz.
2019-11-11Require `Regexp.escape` before interpolating `build_dir`; fix #4817Yukihiro "Matz" Matsumoto
2019-08-26change doc directory and reduce warningsDavid Siaw
2019-08-25Defer several build libraries loading until neededKOBAYASHI Shuji
2019-08-24Remove unused constant in `Rakefile`; ref e312842aKOBAYASHI Shuji
2019-08-22Refine processing for gem lock fileKOBAYASHI Shuji
- Defer YAML library and lock file loading until needed. - Don't write empty parts into lock file. - Extract code to read/write lock file to `MRuby::Lockfile`. - `MRuby::Lockfile.disable` disables the use of lock file.
2019-08-22Take commit hash of mruby tootake-cheeze
2019-08-21Merge pull request #4180 from take-cheeze/lock_fileYukihiro "Matz" Matsumoto
Support lock file for git.
2019-03-08Allow `enable_bintest` without `enable_test` in build configKOBAYASHI Shuji
2019-01-18Avoid a side effect when run Rake without execution of tasksKOBAYASHI Shuji
Avoid directory creation when run `rake -T` etc.
2018-12-24Refine description for rake test tasks.KOBAYASHI Shuji
Before: $ rake -T test rake test_test # run all mruby tests After: $ rake -T test rake test # run all mruby tests
2018-12-06Support lock file for git.take-cheeze
2018-10-29Rename libmruby stuff to avoid confusiontake-cheeze
2018-06-22Run tests parallelly for each target.take-cheeze
2017-04-04Some adjustmentsUchio KONDO