20/10/2025 17:55, Bruce Richardson:
> The various builds done by the "test-meson-builds.sh" script can take a
> large amount of space on disk. Some simple changes allow us to reduce
> the space used significantly. Specifically:
> * use the default "release" build, which does not include debug
>   information, for builds where we won't check ABI.
> * use shared linkage rather than static for the 32-bit builds.
> 
> After making these changes a set of builds produced by test-meson-builds
> shrank from ~17G to ~7G on my system.
> 
> Signed-off-by: Bruce Richardson <[email protected]>

I agree with this change. I had done something similar 4 years ago:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/

My patch was also adding build types "debug" and "minsize".
Now that clang is fixed, I will work on it (requires fixes for minsize).

Your patch shrinks the build directory from 20G to 9G in my setup.

[...]
> -     config $srcdir $builds_dir/$targetdir $cross --werror $*
> +     config $srcdir $builds_dir/$targetdir $abicheck $cross --werror $*

There is another call to the function config() for the ABI ref build
which requires to add the new ABI parameter:

-                       config $abirefdir/src $abirefdir/build $cross \
+                       config $abirefdir/src $abirefdir/build ABI $cross \
                                -Dexamples= $*
                        compile $abirefdir/build

Applied with this change, thanks.


Reply via email to