summaryrefslogtreecommitdiffhomepage
path: root/lib
AgeCommit message (Collapse)Author
2020-10-12Make sure `bintest` only works with `host` target.Yukihiro "Matz" Matsumoto
2020-10-12Generate C struct from `irep` instead of binary dump.Yukihiro "Matz" Matsumoto
2020-10-12Revert part of "Start GitHub Actions" (4ce3997c)KOBAYASHI Shuji
Because some changes have been overridden.
2020-10-12Start GitHub Actions; close #4903Takeshi Watanabe
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-09-17Merge pull request #5081 from wataash/d-format-commentYukihiro "Matz" Matsumoto
*.d format is version-independent
2020-09-17*.d format is version-independentWataru Ashihara
As pointed out by @shuujii on https://github.com/mruby/mruby/pull/5079 , multi-path in single-line could be appear even with older-gcc or clang.
2020-09-17Fix skipping reading fileWataru Ashihara
2020-09-17Fix *.d parsing with gcc 9.3.0Wataru Ashihara
Before this commit: $ rake ... $ rm build/host/src/gc.o $ rake rake aborted! Don't know how to build task '/home/foo/mruby/build/host/src/gc.o' (See the list of available tasks with `rake --tasks`) ... After this commit: $ rake ... $ rm build/host/src/gc.o $ rake CC src/gc.c -> build/host/src/gc.o ... With gcc 9.3.0 on Ubuntu 20.04, build/host/src/array.d looks like: /build/host/src/array.o: /src/array.c \ /include/mruby.h /include/mrbconf.h \ /include/mruby/common.h \ ... /include/mruby/range.h \ /src/value_array.h and it has been parsed to: [ # /src/array.c missing "/include/mruby.h /include/mrbconf.h", # incorrectly parsed "/include/mruby/common.h", ... "/src/value_array.h", ] After this change, *.d will be parsed correctly. [ "/src/array.c", "/include/mruby.h", "/include/mrbconf.h", "/include/mruby/common.h", ... "/src/value_array.h", ]
2020-09-10Merge pull request #4933 from dearblue/variablesYukihiro "Matz" Matsumoto
Fix take over file scope variables with `mruby` and `mirb` command
2020-06-11Remove endian configuration methods.Yukihiro "Matz" Matsumoto
Since we made our opcode byte based, we need no endian option (`-e` and `-E`) to `mrbc`.
2020-05-26Revert part of "Start GitHub Actions" (4ce3997c)KOBAYASHI Shuji
Because some changes have been overridden.
2020-05-24Start GitHub Actions; close #4903Takeshi Watanabe
2020-04-29Sorting the list of gems at build time by namedearblue
Printing them in sorted order makes it easier to find the desired gem. But it has come to completely ignore the dependency.
2020-04-08Merged `cygwin_filename()` into `filename()` because Cygwin pathnames are in ↵mimaki
UNIX format.
2020-04-05Merge pull request #4960 from Reckordp/BuildAndroidYukihiro "Matz" Matsumoto
Validate windows by Dir testing
2020-04-04Revert part of #4959Yukihiro "Matz" Matsumoto
To prevent infinite loop on errors; reported by @shuujii
2020-04-03Helper for link window's libraryReckordp
2020-04-01build when directories and files have spacesDominic Sisneros
Modified the build to quote filenames so that it builds when files have spaces
2020-01-29Isolate top-level local variables by file scope; fix #4931dearblue
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-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-23add double quotes for cygwin filenames #4904kishima
2019-12-22Use `git checkout` instead of `git reset`dearblue
With this change, if the checkout fails, it will stop with an error. The purpose is to avoid deleting working branch history when developing gem.
2019-12-22Display directory with git commanddearblue
2019-12-21Perform `shellquote` on referenced stringdearblue
2019-11-10Defer getting `caller_dir` until needed in `MRuby::LoadGems#gem`KOBAYASHI Shuji
2019-10-29Fix file/directory name parameter for `git` command.mimaki
2019-10-19Print mrbc command on verbose modetake-cheeze
2019-10-09Add mrbgem version field to lock filetake-cheeze
2019-09-13Fix warnings for invalid C++ option with `enable_cxx_abi`; ref #3618, #4703KOBAYASHI Shuji
2019-09-13Remove `-std=gnu99` when `enable_cxx_abi`; ref #4703Yukihiro "Matz" Matsumoto
To stop warnings since C++ do not accept `-std=gnu99` option.
2019-08-25Defer several build libraries loading until neededKOBAYASHI 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-22Separate repos directory and build directorytake-cheeze
closes #4652
2019-08-21Merge pull request #4180 from take-cheeze/lock_fileYukihiro "Matz" Matsumoto
Support lock file for git.
2019-08-08Remove monkey patches for Ruby 1.9 or earlierKOBAYASHI Shuji
2019-07-12Merge pull request #4571 from ↵Yukihiro "Matz" Matsumoto
shuujii/consider--MP-flag-specified-when-parsing-.d-file Consider `-MP` flag specified when parsing `.d` file
2019-07-12Lazy load `tasks/toolchains/*.rake`KOBAYASHI Shuji
2019-07-12Consider `-MP` flag specified when parsing `.d` fileKOBAYASHI Shuji
`-MP` flag is used in `tasks/toolchains/android.rake`.
2019-05-17Stop wrapping the filename by double quotes; ref #4440Yukihiro "Matz" Matsumoto
2019-05-17Revert "Add support for CC="gcc --option ..." again"Yukihiro "Matz" Matsumoto
This reverts commit d5c8868346b49e2b2228cb8733398d88f744985b.
2019-05-17Add support for CC="gcc --option ..." againKouhei Sutou
If $rake_root_fiber is used, sh runs command in another Fiber. If command is ran in another Fiber, "rescue RuntimEerror" can't rescue exception for system(...) failure. How to reproduce: $ CC="gcc -std=gnu99" ./minirake (in /home/kou/work/ruby/mruby.kou) CC mrbgems/mruby-compiler/core/codegen.c -> build/test/mrbgems/mruby-compiler/core/codegen.o sh: 1: gcc -std=gnu99: not found rake aborted! Command Failed: ["gcc -std=gnu99" -g -std=gnu99 ...]
2019-04-19Fixes the twiddle wakka comparison algorithm to support passing only a major ↵Rob
number
2019-03-10Add bintest headerKOBAYASHI Shuji
2019-03-08Allow `enable_bintest` without `enable_test` in build configKOBAYASHI Shuji
2019-03-02Remove unused `gem.bin=` method; close #4271Yukihiro "Matz" Matsumoto
2019-02-21Fix typo in `lib/mruby/build/command.rb`KOBAYASHI Shuji
2019-02-06Integrate definition of `MRuby::Build#exefile`KOBAYASHI Shuji
2019-02-02Extend only when necessary in `lib/mruby-core-ext.rb`KOBAYASHI Shuji