On Tue, Jul 28, 2026 at 11:10 PM Nicolas Fella <[email protected]> wrote:

> On 28/07/2026 12:58, Ben Cooksley wrote:
>
> Hi all,
>
> For some time now CI has built everything using CMAKE_BUILD_TYPE set to
> Debug. This has the benefit of producing binaries that have asserts
> enabled, however does have the downside that the binaries generated are
> larger and unoptimized, making test execution take longer.
>
> For KWin, this means that the install/ folder it produces on a Qt 6.11
> system uses ~890MB of space by itself (excluding any dependencies).
>
> In the interests of reducing disk space utilisation on the CI builders, as
> well as hopefully speeding up execution of tests, i'd like to switch the CI
> system to use RelWithDebInfo.
>
> Please let me know if there are any issues with this.
>
> Thanks,
> Ben
>
> Hi,
>
> no objection in principle. I'm a bit skeptical that it will make a large
> difference (debug symbols probably make up the largest part of the space),
> but I'm open to being proved wrong.
>
> I'd rather not lose the asserts though, and we don't have to. We just need
> to pass -DECM_FORCE_ASSERTS=ON to CMake (see
> https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/574
> ).
>

We can do that. The reason for going with full Debug was literally to have
asserts enabled, so if we can do that without having to build full Debug
binaries it should be fine.

I'm expecting that there will be some size reduction thanks to compiler
optimisations, and having optimisations should in theory make things run
faster which is the big gain we'll get.


> Cheers
>
> Nico
>

Cheers,
Ben

Reply via email to