aboutsummaryrefslogtreecommitdiffstats
path: root/defs
Commit message (Collapse)AuthorAgeFilesLines
* Fix error when gems/src is read-onlyKazuhiro NISHIYAMA2023-10-111-3/+5
| | | | | | | | | | | | | When I shared srcdir as read-only in lima-vm, `make install` causes following error: ``` Update rbs to 33813a60752624d58dfe5ae770b39bfaf29fbaf1 error: cannot open .git/FETCH_HEAD: Read-only file system ``` I cannot find any ignore option for `git checkout --detach` when already checked out. So I add `if`.
* Download Unicode files once [ci skip]Nobuyoshi Nakada2023-09-261-0/+11
|
* `.NOTPARALLEL` with prerequisites needs recent GNU MakeNobuyoshi Nakada2023-09-211-1/+7
| | | | | GNU Make prior to 4.4 just ignores the prerequisites, and runs everything in serial.
* Enable `.NOTPARALLEL` on `ripper_srcs`Nobuyoshi Nakada2023-09-131-3/+1
| | | | And add special treats only for old GNU make.
* Split commit recipe and pass more macrosNobuyoshi Nakada2023-09-111-3/+10
|
* RJIT: Remove macros inherited from MJIT but no longer usedNobuyoshi Nakada2023-08-171-3/+0
|
* Use `::` form workflow commandsNobuyoshi Nakada2023-08-151-2/+3
|
* Fix test and precheck order for old GNU MakeNobuyoshi Nakada2023-08-141-3/+19
|
* Fix test-bundler dependenciesNobuyoshi Nakada2023-08-111-1/+1
|
* Fix order of test-syntax-suggest-prepare for old GNU MakeNobuyoshi Nakada2023-08-111-0/+1
|
* Extract common variablesNobuyoshi Nakada2023-07-301-4/+4
|
* Serially update only the ripper source, even with old GNU makeNobuyoshi Nakada2023-07-101-0/+9
|
* Use Lrama LALR parser generator instead of BisonYuichiro Kaneko2023-05-121-0/+1
| | | | | https://bugs.ruby-lang.org/issues/19637 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Emit special instruction for array literal + .(hash|min|max)Aaron Patterson2023-04-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a new instruction `opt_newarray_send` which is used when there is an array literal followed by either the `hash`, `min`, or `max` method. ``` [a, b, c].hash ``` Will emit an `opt_newarray_send` instruction. This instruction falls back to a method call if the "interested" method has been monkey patched. Here are some examples of the instructions generated: ``` $ ./miniruby --dump=insns -e '[@a, @b].max' == disasm: #<ISeq:<main>@-e:1 (1,0)-(1,12)> (catch: FALSE) 0000 getinstancevariable :@a, <is:0> ( 1)[Li] 0003 getinstancevariable :@b, <is:1> 0006 opt_newarray_send 2, :max 0009 leave $ ./miniruby --dump=insns -e '[@a, @b].min' == disasm: #<ISeq:<main>@-e:1 (1,0)-(1,12)> (catch: FALSE) 0000 getinstancevariable :@a, <is:0> ( 1)[Li] 0003 getinstancevariable :@b, <is:1> 0006 opt_newarray_send 2, :min 0009 leave $ ./miniruby --dump=insns -e '[@a, @b].hash' == disasm: #<ISeq:<main>@-e:1 (1,0)-(1,13)> (catch: FALSE) 0000 getinstancevariable :@a, <is:0> ( 1)[Li] 0003 getinstancevariable :@b, <is:1> 0006 opt_newarray_send 2, :hash 0009 leave ``` [Feature #18897] [ruby-core:109147] Co-authored-by: John Hawthorn <jhawthorn@github.com>
* Replace arch_flags for universal build [ci skip]Nobuyoshi Nakada2023-04-081-1/+1
|
* BundledGem.dummy_spec needs to checkout revision after cloning repository.Hiroshi SHIBATA2023-03-081-1/+1
| | | | | | The current BundledGem.dummy_spec always called from master branch. It caused to CI faiulres like http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20230305T001003Z.fail.html.gz
* s/MJIT/RJIT/Takashi Kokubun2023-03-061-1/+1
|
* Drop obsoleted MJIT header (#7458)Takashi Kokubun2023-03-062-33/+0
| | | RJIT doesn't need this.
* Move dummy gemspec file creation for extract-gems-sequentialNobuyoshi Nakada2023-02-221-0/+6
|
* Use git directories instead of gemspec files as dependencyNobuyoshi Nakada2023-02-221-3/+3
| | | | Minitest repository does not commit its gemspec file.
* No validation for bundled gemsYusuke Endoh2023-02-191-1/+1
| | | | | | | | | | | | | | https://github.com/mame/ruby/actions/runs/4208869556/jobs/7305356097 ``` WARNING: open-ended dependency on irb (>= 1.5.0) is not recommended if irb is semantically versioned, use: add_runtime_dependency 'irb', '~> 1.5', '>= 1.5.0' WARNING: open-ended dependency on reline (>= 0.3.1) is not recommended if reline is semantically versioned, use: add_runtime_dependency 'reline', '~> 0.3', '>= 0.3.1' WARNING: See http://guides.rubygems.org/specification-reference/ for help /usr/lib/ruby/2.7.0/rubygems/specification_policy.rb:418:in `error': specification has warnings (Gem::InvalidSpecificationException) ```
* Move `attached_object` into `rb_classext_struct`Jean Boussier2023-02-161-1/+0
| | | | | | Given that signleton classes don't have an allocator, we can re-use these bytes to store the attached object in `rb_classext_struct` without making it larger.
* Override release date in Makefile if possibleNobuyoshi Nakada2023-02-131-0/+7
|
* Add TAGS rule [ci skip]Nobuyoshi Nakada2023-02-082-0/+22
|
* Link RUBYSPEC_CAPIEXT against the built libraryNobuyoshi Nakada2023-01-261-1/+1
|
* Need gemspec files instead of cloned directoriesNobuyoshi Nakada2023-01-261-2/+2
|
* Fixed clone nameHiroshi SHIBATA2023-01-261-1/+1
|
* Use timestamp files to track test revision of bundled gemsNobuyoshi Nakada2023-01-261-4/+13
|
* [Bug #19340] Fix bundle gems with test revisionNobuyoshi Nakada2023-01-261-7/+8
| | | | | Build temporary gem package from cloned repository if test revision is set.
* Run `after-update` in the same main make process [ci skip]Nobuyoshi Nakada2023-01-201-0/+4
|
* Extract only one revision in header [ci skip]Nobuyoshi Nakada2023-01-051-1/+1
| | | | | Both of `$(srcdir)/revision.h` and `revision.h` exist because they are the same file when in-place build.
* Test bundler and bundled gems by examNobuyoshi Nakada2022-12-281-1/+1
|
* Order test-bundler-parallel dependencyNobuyoshi Nakada2022-12-281-0/+1
|
* Reset ABI version [ci skip]Nobuyoshi Nakada2022-12-261-3/+6
|
* make matz [ci skip]Nobuyoshi Nakada2022-12-261-0/+7
|
* Fix test-syntax-suggest orderNobuyoshi Nakada2022-12-241-1/+1
| | | | Prepare for test-syntax-suggest after other tests finished.
* Test syntax_suggest by `make check`Nobuyoshi Nakada2022-12-231-2/+4
|
* Use a BOP for Hash#defaultJohn Hawthorn2022-12-171-0/+1
| | | | | | | | | | | | | | | | | | | | On a hash miss we need to call default if it is redefined in order to return the default value to be used. Previously we checked this with rb_method_basic_definition_p, which avoids the method call but requires a method lookup. This commit replaces the previous check with BASIC_OP_UNREDEFINED_P and a new BOP_DEFAULT. We still need to fall back to rb_method_basic_definition_p when called on a subclasss of hash. | |compare-ruby|built-ruby| |:---------------|-----------:|---------:| |hash_aref_miss | 2.692| 3.531| | | -| 1.31x| Co-authored-by: Daniel Colson <danieljamescolson@gmail.com> Co-authored-by: "Ian C. Anderson" <ian@iancanderson.com> Co-authored-by: Jack McCracken <me@jackmc.xyz>
* [Bug #19182] Unicode updating targets do not need to run for each filesNobuyoshi Nakada2022-12-111-0/+5
|
* [Bug #19181] Separate the rule for unicode_normalize/tables.rb timestampNobuyoshi Nakada2022-12-101-11/+0
| | | | | It should depends on only existing data files (except for the tools), unless `ALWAYS_UPDATE_UNICODE=yes`.
* Introduce `IO.new(..., path:)` and promote `File#path` to `IO#path`. (#6867)Samuel Williams2022-12-081-0/+1
|
* Fix dependencies of outdate-bundled-gemsNobuyoshi Nakada2022-11-291-6/+14
| | | | Extract new gems then remove outdated gem directories.
* Refine outdate-bundled-gemsNobuyoshi Nakada2022-11-291-2/+1
|
* Control non-parallel parts with `.WAIT` if availableNobuyoshi Nakada2022-11-131-0/+4
|
* Force to update revision.h when commits differNobuyoshi Nakada2022-11-131-0/+13
|
* reserved_word: just use gperf 3.1 declaration卜部昌平2022-09-212-2/+2
| | | | | | | | The reason why this was commented out was because of gperf 3.0 vs 3.1 differences (see [Feature #13883]). Five years passed, I am pretty confident that we can drop support of old versions here. Ditto for uniname2ctype_p(), onig_jis_property(), and zonetab().
* Always generate non-empty revision.hTakashi Kokubun2022-09-171-13/+0
| | | | | | | | | | Non-GNU make seems to generate empty revision.h, but it doesn't make sense since https://github.com/ruby/ruby/pull/6382. Also the $(HAVE_BASERUBY:yes=tmp) hack doesn't seem to be working on OpenBSD. I'll remove it to focus on fixing RubyCI first, and then deal with baseruby-missing environments. At least a snapshot should have revision.h and it might work fine though.
* Revert "defs/gmake.mk: no _FORTIFY_SOURCE unless optimization"Nobuyoshi Nakada2022-09-121-4/+0
| | | | | This reverts commit b8c376cb9d91854fd40f6e06f07773404899b54f, as it seems no longer needed probably.
* Generate token ID indexes in id.defNobuyoshi Nakada2022-09-081-1/+3
| | | | | Separate the logic accross the tables from the template view for id.h.
* SCRIPTBINDIR is ok if it just exists [ci skip]Nobuyoshi Nakada2022-08-311-3/+2
|