Skip to contentSkip to conversation

webkitgtk3: fix build on riscv64

PATCH New Yi Zhao 1 participant 1 message Apr 28

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 webkitgtk3: fix build on riscv64

Fix the following build failure:
Source/ThirdParty/skia/modules/skcms/src/Transform_inl.h:810:71:
error: cannot tail-call: tail call production failed

  810 |         DECLARE_STAGE(name, arg, [[clang::musttail]] return (*list.fn)(list, ctx, src, dst, \
      |                                                             ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
  811 |                                                                        r, g, b, a, i))
      |                                                                        ~~~~~~~~~~~~~~
---
 meta-oe/recipes-support/webkitgtk/webkitgtk3_2.50.6.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/webkitgtk/webkitgtk3_2.50.6.bb +4 -0
index c3f736568f..67f95620fd 100644
@@ -113,6 +113,10 @@ CXXFLAGS:append:arc = " -mlong-calls"
 # Needed for non-mesa graphics stacks when x11 is disabled
 CXXFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', '-DEGL_NO_X11=1', d)}"
 
+# Fix Source/ThirdParty/skia/modules/skcms/src/Transform_inl.h:810:71:
+# error: cannot tail-call: tail call production failed
+CXXFLAGS:append:riscv64 = " -DSKCMS_HAS_MUSTTAIL=0"
+
 # Javascript JIT is not supported on powerpc
 EXTRA_OECMAKE:append:powerpc = " -DENABLE_JIT=OFF "
 EXTRA_OECMAKE:append:powerpc64 = " -DENABLE_JIT=OFF "
Signature · 1 line
2.34.1