Skip to contentSkip to conversation

ruby: Use arm32 for coroutines on 32bit-arm

PATCH New Khem Raj 1 participant 1 message Mar 10, 2020

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v3 1/1 ruby: Use arm32 for coroutines on 32bit-arm

in 2.7 [2] ruby enabled ucontext for coroutines on arm32 but it does not work for musl since it uses glibc specific functions e.g. getcontext/swapcontext/swapcontext also see [1]

This patch reverts back to using arm32 implementation for coroutines on arm

[1] https://bugs.ruby-lang.org/issues/16455#change-83442
[2] https://github.com/ruby/ruby/commit/6c6bf9ffcbfeb8be9d9c342e7604b74ec819e88a#diff-7fccec8474e2184cd2518046bf39d54cL10

---
v2: No change
v3: Include armeb as well

 meta/recipes-devtools/ruby/ruby_2.7.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/ruby/ruby_2.7.0.bb +3 -0
index 268b4bebd9..44c76161d5 100644
@@ -25,6 +25,9 @@ EXTRA_OECONF = "\
     --with-pkg-config=pkg-config \
 "
 
+EXTRA_OECONF_append_libc-musl_arm = " --with-coroutine=arm32"
+EXTRA_OECONF_append_libc-musl_armeb = " --with-coroutine=arm32"
+
 do_install() {
     oe_runmake 'DESTDIR=${D}' install
 }
Signature · 1 line
2.25.1