]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
webkitgtk: fix build failure with DEBUG_BUILD enabled
authorKai Kang <kai.kang@windriver.com>
Tue, 5 Sep 2023 02:02:09 +0000 (10:02 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Sep 2023 16:52:37 +0000 (17:52 +0100)
commit8a33cd60f89685eeda7c5b3513540561df06160d
tree7575815a751f2a0d3590dc3d628b630dc8d9fe3c
parenta8db0735e228465715cf885d3b889fddfd68efc6
webkitgtk: fix build failure with DEBUG_BUILD enabled

It fails to compile webkitgtk when debug build enabled:

| /path_to/tmp/work/core2-64-poky-linux/webkitgtk/2.40.5/webkitgtk-2.40.5/Source/bmalloc/libpas/src/libpas/pas_allocation_result.h:76:1:
  error: inlining failed in call to 'always_inline' 'pas_allocation_result pas_allocation_result_identity(pas_allocation_result)':
  function not considered for inlining
|    76 | pas_allocation_result_identity(pas_allocation_result result)
|       | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Add a cmake variable WEBKIT_NO_INLINE_HINTS to disable gcc function
attribute `always_inline` when debug build is enabled.

And adjust indent as well.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-sato/webkit/webkitgtk/0001-CMake-Add-a-variable-to-control-macro-__PAS_ALWAYS_I.patch [new file with mode: 0644]
meta/recipes-sato/webkit/webkitgtk_2.40.5.bb