yocto-space-optimize.inc: move space optimize from recipe webkitgtk

The yocto-space-optimize.inc is used to allow turning off the debug compiler
options for a small set of recipes to reduce build on disk footprint
and package/sstate sizes [1]. Move space optimize from recipe webkitgtk
to it.

Due to commit [2], update comments to remove `Unless DEBUG_BUILD is enabled'

[1] a0483b962d
[2] 9badf68d78

(From OE-Core rev: 007c4aea10e13bd9b2d66d016c25f31c2709cbf6)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Hongxu Jia
2025-09-16 12:09:20 +08:00
committed by Richard Purdie
parent a2443e25a6
commit 32a2d2801e
2 changed files with 3 additions and 4 deletions

View File

@@ -8,3 +8,6 @@ DEBUG_LEVELFLAG:pn-clang-native = ""
DEBUG_LEVELFLAG:pn-nativesdk-clang = ""
# With -g, qemu workdir is 10GB, qemu-dbg is 363MB
DEBUG_LEVELFLAG:pn-qemu = ""
# Pass -g1 to massively reduce the size of the
# debug symbols (4.3GB to 700M at time of writing)
DEBUG_LEVELFLAG:pn-webkitgtk = "-g1"

View File

@@ -98,10 +98,6 @@ EXTRA_OECMAKE = " \
-DENABLE_RELEASE_LOG=ON \
"
# Unless DEBUG_BUILD is enabled, pass -g1 to massively reduce the size of the
# debug symbols (4.3GB to 700M at time of writing)
DEBUG_LEVELFLAG = "-g1"
# Javascript JIT is not supported on ARC
EXTRA_OECMAKE:append:arc = " -DENABLE_JIT=OFF "
# By default 25-bit "medium" calls are used on ARC