Re: [RFC PATCH] kbuild: Add an option to enable -O1 and speed-up compilation time

From: Miguel Ojeda
Date: Tue May 24 2022 - 10:17:01 EST


On Mon, May 23, 2022 at 8:27 PM Nick Desaulniers
<ndesaulniers@xxxxxxxxxx> wrote:
>
> As with the Rust series, I'm not a fan of this (or
> CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3):
> https://lore.kernel.org/lkml/CAKwvOd=7QTUH69+ZbT7e8einvgcosTbDkyohmPaUBv6_y8RfrQ@xxxxxxxxxxxxxx/

I think it should be decided whether we want extra levels or not, and
apply that policy to both the C and Rust sides.

If we don't, then yeah, let's remove them in both sides and just let
users modify `CFLAGS` as needed.

If we do, then having them as config options makes sense so that they
can be kept working.

Cheers,
Miguel