From: Changbin Du <changbin.du@gmail.com>
To: yamada.masahiro@socionext.com
Cc: arnd@arndb.de, linux-kernel@vger.kernel.org,
linux-kbuild@vger.kernel.org, Changbin Du <changbin.du@gmail.com>
Subject: [PATCH] init/Kconfig: make CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC
Date: Mon, 5 Nov 2018 23:17:19 +0800 [thread overview]
Message-ID: <20181105151719.4552-1-changbin.du@gmail.com> (raw)
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@socionext.com>
Signed-off-by: Changbin Du <changbin.du@gmail.com>
---
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
next reply other threads:[~2018-11-05 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 15:17 Changbin Du [this message]
2018-11-09 15:03 ` [PATCH] init/Kconfig: make CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181105151719.4552-1-changbin.du@gmail.com \
--to=changbin.du@gmail.com \
--cc=arnd@arndb.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).