mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 06:32:34 +02:00
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>
14 lines
589 B
C++
14 lines
589 B
C++
# Some components have debug data and workdirs that are simply too large to be useful
|
|
# in general builds. Disable or reduce debugging for these cases to improve disk usage
|
|
# and build speed.
|
|
|
|
# With -g, llvm workdir is 40GB, llvm-staticdev is 1.3GB, llvm-dbg is 1GB
|
|
DEBUG_LEVELFLAG:pn-clang = ""
|
|
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"
|