Commit ad4a9fef authored by Benoit Daloze's avatar Benoit Daloze
Browse files

Support patches for TruffleRuby too

parent 50a06317
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -86,8 +86,8 @@ The build process may be configured through the following environment variables:
#### Applying Patches

Both `rbenv install` and `ruby-build` support the `--patch` (`-p`) flag to apply
a patch to the Ruby (/JRuby/Rubinius) source code before building. Patches are
read from `STDIN`:
a patch to the Ruby (/JRuby/Rubinius/TruffleRuby) source code before building.
Patches are read from `STDIN`:

```sh
# applying a single patch
+1 −1
Original line number Diff line number Diff line
@@ -1154,7 +1154,7 @@ isolated_gem_install() {
apply_ruby_patch() {
  local patchfile
  case "$1" in
  ruby-* | jruby-* | rubinius-* )
  ruby-* | jruby-* | rubinius-* | truffleruby-* )
    patchfile="$(mktemp "${TMP}/ruby-patch.XXXXXX")"
    cat "${2:--}" >"$patchfile"