packages/lang/ruby
Luiz Angelo Daros de Luca 23f08217ac ruby: fix yjit for target and host build
Since ruby 3.3.0, yjit was converted into rust code. During build, ruby will try try to use the whatever rustc is available in $PATH, including the one provided by the OS. Variations in that rustc can generate something between a perfect funcional build with yjit enabled and a broken build like this (from github actions):

  2024-10-16T05:06:05.9863422Z linking static-library libruby-static.a
  2024-10-16T05:06:06.0625182Z LLVM ERROR: Invalid encoding
  2024-10-16T05:06:06.1531894Z make[4]: *** [Makefile:318: libruby-static.a] Aborted (core dumped)

Ruby 3.3.5 still only supports yjit for x86_64 and aarch64. Even for those targets, ruby build does not support cross-compiling.

This commit adds rust as a dependency for those supported archs, even when cross-compiling, to let it work when host and target arch matches.

We don't need yjit for host build and we can disable it.

Closes #25151, #25052

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2024-10-26 14:51:33 +03:00
..
files ruby: wrap script to disable gems if not installed 2014-10-07 14:14:52 -03:00
patches ruby: fix riscv64 build 2023-08-14 18:16:23 -03:00
Makefile ruby: fix yjit for target and host build 2024-10-26 14:51:33 +03:00
ruby_find_pkgsdeps ruby: update to 3.3.3 2024-06-17 16:22:59 +08:00
ruby_missingfiles ruby: update to 3.3.3 2024-06-17 16:22:59 +08:00