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

From: Christophe JAILLET
Date: Mon May 23 2022 - 16:44:55 EST


Le 23/05/2022 à 22:25, Miguel Ojeda a écrit :
Hi Christophe,

On Mon, May 23, 2022 at 9:11 AM Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx> wrote:

+KBUILD_RUSTFLAGS_OPT_LEVEL_MAP := 1

The patch seems based on linux-next -- is this intended? Thanks!

Yes, I work on -next.

Honestly, this "RUST flag" was just a mimic of the KBUILD_CFLAGS.
No real opinion on it, I just put something that looked consistent for a patch that was only a RFC.

CJ


Cheers,
Miguel