Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Alex Bennée
Daniel P. Berrangé writes: > On Tue, Mar 04, 2025 at 12:11:25PM +, Daniel P. Berrangé wrote: >> On Tue, Mar 04, 2025 at 11:33:44AM +, Alex Bennée wrote: >> > Daniel P. Berrangé writes: >> > >> > > On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: >> > >> This option is suppor

Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Daniel P . Berrangé
On Tue, Mar 04, 2025 at 02:40:31PM +0100, Philippe Mathieu-Daudé wrote: > On 4/3/25 13:11, Daniel P. Berrangé wrote: > > On Tue, Mar 04, 2025 at 11:33:44AM +, Alex Bennée wrote: > > > Daniel P. Berrangé writes: > > > > > > > On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: > > > >

Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Philippe Mathieu-Daudé
On 4/3/25 13:11, Daniel P. Berrangé wrote: On Tue, Mar 04, 2025 at 11:33:44AM +, Alex Bennée wrote: Daniel P. Berrangé writes: On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: This option is supported by both gcc (since 4.7) and clang (since 7.0). Not only does this make the

Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Daniel P . Berrangé
On Tue, Mar 04, 2025 at 12:11:25PM +, Daniel P. Berrangé wrote: > On Tue, Mar 04, 2025 at 11:33:44AM +, Alex Bennée wrote: > > Daniel P. Berrangé writes: > > > > > On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: > > >> This option is supported by both gcc (since 4.7) and clan

Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Daniel P . Berrangé
On Tue, Mar 04, 2025 at 11:33:44AM +, Alex Bennée wrote: > Daniel P. Berrangé writes: > > > On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: > >> This option is supported by both gcc (since 4.7) and clang (since > >> 7.0). Not only does this make the linkers job easier by reducing

Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Daniel P . Berrangé
On Tue, Mar 04, 2025 at 11:33:44AM +, Alex Bennée wrote: > Daniel P. Berrangé writes: > > > On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: > >> This option is supported by both gcc (since 4.7) and clang (since > >> 7.0). Not only does this make the linkers job easier by reducing

Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Alex Bennée
Daniel P. Berrangé writes: > On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: >> This option is supported by both gcc (since 4.7) and clang (since >> 7.0). Not only does this make the linkers job easier by reducing the >> amount of ELF it needs to parse it also reduces the total build

Re: [RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-04 Thread Daniel P . Berrangé
On Mon, Mar 03, 2025 at 10:17:03PM +, Alex Bennée wrote: > This option is supported by both gcc (since 4.7) and clang (since > 7.0). Not only does this make the linkers job easier by reducing the > amount of ELF it needs to parse it also reduces the total build size > quite considerably. In my

[RFC PATCH] meson.build: add -gsplit-dwarf to default cflags

2025-03-03 Thread Alex Bennée
This option is supported by both gcc (since 4.7) and clang (since 7.0). Not only does this make the linkers job easier by reducing the amount of ELF it needs to parse it also reduces the total build size quite considerably. In my case a default build went from 5.8G to 3.9G. Signed-off-by: Alex Ben