[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNARFMPn2SN5vShCWX94UbTGF5WY6fjnVnS8ZFmFpXj-TpQ@mail.gmail.com>
Date: Sat, 10 Nov 2018 00:03:13 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Changbin Du <changbin.du@...il.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: Re: [PATCH] init/Kconfig: make CC_OPTIMIZE_FOR_DEBUGGING visible only
for GCC
On Tue, Nov 6, 2018 at 12:18 AM Changbin Du <changbin.du@...il.com> wrote:
>
> Currently CC_OPTIMIZE_FOR_DEBUGGING is only able to build with GCC.
> For clang, -Og optimization level could break kernel build. So make
> CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC.
>
> Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>
> Signed-off-by: Changbin Du <changbin.du@...il.com>
> ---
I squashed this into the previous patch in the kbuild tree.
Thanks!
> init/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/init/Kconfig b/init/Kconfig
> index 0fb9c0b5f1a1..d5fb0ee1400a 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -1107,6 +1107,7 @@ config CC_OPTIMIZE_FOR_SIZE
>
> config CC_OPTIMIZE_FOR_DEBUGGING
> bool "Optimize for better debugging experience (-Og)"
> + depends on CC_IS_GCC
> depends on $(cc-option,-Og)
> select NO_AUTO_INLINE
> help
> --
> 2.17.1
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists