summaryrefslogtreecommitdiff
path: root/tool
AgeCommit message (Collapse)Author
2022-12-05tool/runruby.rb: remove LD_PRELOAD-like env-var options from runruby.rbYuta Saito
LD_PRELOAD sometimes forces loading libraries into unrelated executables. For example, macOS on recent Apple Silicon can execute arm64 and arm64e binaries by default, and /usr/bin/clang is built as arm64e. If Ruby is built as arm64, and mkmf launched through runruby.rb spawns /usr/bin/clang, dynamic loader tries to load libruby (arm64e) into clang (arm64). This force-load causes library load failure. In theory, we don't need both LD_PRELOAD and LD_LIBRARY_PATH at the same time, because executables requiring libruby already have libruby dependency, so LD_LIBRARY_PATH is enough for this case. Notes: Merged: https://github.com/ruby/ruby/pull/6857
2022-12-03downloader.rb: Select less components pathNobuyoshi Nakada
2022-12-03downloader.rb: Fix link to absolute cache pathNobuyoshi Nakada
2022-12-01MJIT: Use install = true for bundler/inlineTakashi Kokubun
It prints a `bundle install`-like output, which seems more useful than a silent output.
2022-12-01Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6834
2022-11-29MJIT: Rename mjit_compile_attr to mjit_sp_incTakashi Kokubun
There's no mjit_compile.inc, so no need to use this prefix anymore.
2022-11-29Extract outdate-bundled-gems.rbNobuyoshi Nakada
2022-11-28MJIT: Rename mjit_compiler.h to mjit_c.hTakashi Kokubun
because it exists primarily for generating mjit_c.rb.
2022-11-28sync_default_gems.rb: move default_branch to REPOSITORIESNobuyoshi Nakada
`sync_default_gems_with_commits` also needs the default branch. Notes: Merged: https://github.com/ruby/ruby/pull/6823
2022-11-28sync_default_gems.rb: suppress a duplicated range warningNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6823
2022-11-28sync_default_gems.rb: adjust indent [ci skip]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6823
2022-11-28sync_default_gems.rb: extend for singleton methodsNobuyoshi Nakada
2022-11-28Fix the case of multiple trailersNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6820
2022-11-28Add tests for sync_default_gems.rbNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6820
2022-11-27MJIT: Use a String buffer in builtin compilersTakashi Kokubun
instead of FILE*. Using C.fprintf is slower than String manipulation on memory. I'm going to change the way MJIT writes files, and this is a prerequisite for it.
2022-11-27MJIT: Clear .cache/clangd on bindgen if existsTakashi Kokubun
2022-11-25Do not use the same variable for multiple thingsTakashi Kokubun
`conv` proc is used before and after the `url` variable is updated. So this script didn't seem to behave correctly for the "Close #xxx" syntax. Reusing the same variable name for different things seems prone to errors.
2022-11-25Support other GitHub PR/issue syntaxesTakashi Kokubun
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue
2022-11-21Use class methods of `File` over `Kernel.open` and `IO.read`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6777
2022-11-20Fix a broken interpolation #{head}Takashi Kokubun
2022-11-20sync_default_gems.rb: Fix substitution [ci skip]Nobuyoshi Nakada
As there should be no modified files just affter `git cherry-pick` succeeded in `sync_default_gems_with_commits`, reset to the previous revision once to pick up the committed files.
2022-11-19Run skipped minitest tests that now passAlan Wu
The mentioned PR was merged. Notes: Merged: https://github.com/ruby/ruby/pull/6768
2022-11-18rename SHAPE_BITS to SHAPE_ID_NUM_BITSAaron Patterson
Notes: Merged: https://github.com/ruby/ruby/pull/6737
2022-11-18tool/generic_erb.rb: Add a hack to prevent "unused variable" warningsYusuke Endoh
2022-11-18Revert "tool/generic_erb.rb: Use ERB#result_with_hash instead of #result"Yusuke Endoh
This reverts commit bd148a2bdd0c1a4d7679eedcd649171cdb4234d7. ERB#result_with_hash does not work on Ruby 2.2 https://ci.appveyor.com/project/ruby/ruby/builds/45420170 ``` ../tool/generic_erb.rb:33:in `block (2 levels) in <main>': undefined method `result_with_hash' for #<ERB:0x0000000002516650> (NoMethodError) ```
2022-11-18tool/generic_erb.rb: Use ERB#result_with_hash instead of #resultYusuke Endoh
to prevent the warnings: ``` ./tool/generic_erb.rb:23: warning: assigned but unused variable - output ./tool/generic_erb.rb:24: warning: assigned but unused variable - vpath ```
2022-11-16Remove duplicate `.rbinc` on `.rb` dependenciesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6742
2022-11-15Let mjit-bindgen use BASERUBY and bundle/inline (#6740)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-11-16Depending on revision.h with VPATHNobuyoshi Nakada
2022-11-15MJIT: Fix vm_cc_cme(cc).def.type to use bit fieldTakashi Kokubun
access properly. Because the libclang node had two children, it wasn't handled well by the pattern matching for the bit field case. In addition to that, this bit field has a non-1 width. Because we're returning true/false for a width-1 bit field, I added another behavior that works like a char value for bit fields with width 2-8.
2022-11-15Update RSpec gemsDavid Rodríguez
2022-11-14Remove USE_RVARGC codeAaron Patterson
We don't need this constant to be exposed anymore, so remove it Notes: Merged: https://github.com/ruby/ruby/pull/6728
2022-11-14Import shape constants with mjit-bindgenTakashi Kokubun
2022-11-14Import class constants with mjit-bindgenTakashi Kokubun
2022-11-13Try to overwrite the file in VPATH if possibleNobuyoshi Nakada
2022-11-10Preprocess for older bison is no longer neededNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6701
2022-11-07jobserver option may not be at the lastNobuyoshi Nakada
2022-11-07Set `autoclose:` for inherited FDs only [ci skip]Nobuyoshi Nakada
2022-11-06GNU make 4.4 now uses a fifo for the jobserverNobuyoshi Nakada
2022-11-04Don't report changed ENV caused by BundlerPeter Zhu
Bundler's backups changes environment variables starting with BUNDLER_ORIG_. This causes a lot of noise in tests as the leakchecker reports them as changed.
2022-11-04mkconfig.rb: take CPU name from arch flagNobuyoshi Nakada
2022-11-04sync_default_gems.rb: fix a typo [ci skip]Nobuyoshi Nakada
2022-11-04sync_default_gems.rb: fix the position to insert the original URLNobuyoshi Nakada
Since the regexp had expected an empty line before `Co-Authored-By:` trailer lines, it failed to match when the body has the trailer only.
2022-11-04sync_default_gems.rb: accept log input from other than STDINNobuyoshi Nakada
2022-11-02Fix crash in test runner on timeoutPeter Zhu
When a test worker hangs and timeouts, the test runner crashes with the following stack trace: ruby/tool/lib/test/unit.rb:1747:in `puke': undefined method `backtrace' for Timeout::Error:Class (NoMethodError) from ruby/tool/lib/test/unit.rb:790:in `block in _run_parallel' from ruby/tool/lib/test/unit.rb:788:in `each' This commit adds handling for Timeout::Error and outputs a message.
2022-11-02file2lastrev.rb: changed revision may be `nil` [ci skip]Nobuyoshi Nakada
When `--suppress_not_found` option is given, no revision information is available. And remove extraneous newline, when result is empty or ends with a newline.
2022-11-02file2lastrev.rb: try to overwrite the found revision.h as beforeNobuyoshi Nakada
2022-11-02file2lastrev.rb: separate options for `Output` and `VPath`Nobuyoshi Nakada
So the `--srcdir` option in this file can override the same option in `VPath`.
2022-11-01file2lastrev.rb: use output.rb for the optionsNobuyoshi Nakada
2022-11-01file2lastrev.rb: rename output as formatNobuyoshi Nakada
Also: - format -> time_format - output -> formatter