init/Kconfig: make CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC
PATCH 1/1 init/Kconfig: make CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC
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 <[email protected]>
Signed-off-by Changbin Du <[email protected]>
--- init/Kconfig | 1 + 1 file changed, 1 insertion(+)
init/Kconfig +1 -0
@@ -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
Signature · 1 line
2.17.1
Quoted 8 lines · Changbin Du
Currently
CC_OPTIMIZE_FOR_DEBUGGINGis only able to build with GCC. For clang, -Og optimization level could break kernel build. So makeCC_OPTIMIZE_FOR_DEBUGGINGvisible only for GCC.Cc Masahiro Yamada <[email protected]>Signed-off-by Changbin Du <[email protected]>---
I squashed this into the previous patch in the kbuild tree.
Thanks!
Quoted 18 lines
init/Kconfig | 1 + 1 file changed, 1 insertion(+)init/Kconfig +1
-1@@ -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
Signature · 2 lines
Best Regards Masahiro Yamada