diff options
| author | Masahiro Yamada <[email protected]> | 2021-02-03 07:52:39 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2021-02-05 08:53:28 +0000 |
| commit | 315da87c0f99a4741a639782d59dae44878199f5 (patch) | |
| tree | 88eb0fe7701fd175e29aa39846ea2a847c17b2e5 /scripts/clang-tools/run-clang-tools.py | |
| parent | scripts/clang-tools: switch explicitly to Python 3 (diff) | |
| download | kernel-315da87c0f99a4741a639782d59dae44878199f5.tar.gz kernel-315da87c0f99a4741a639782d59dae44878199f5.zip | |
kbuild: fix duplicated flags in DEBUG_CFLAGS
Sedat Dilek noticed duplicated flags in DEBUG_CFLAGS when building
deb-pkg with CONFIG_DEBUG_INFO. For example, 'make CC=clang bindeb-pkg'
reproduces the issue.
Kbuild recurses to the top Makefile for some targets such as package
builds.
With commit 121c5d08d53c ("kbuild: Only add -fno-var-tracking-assignments
for old GCC versions") applied, DEBUG_CFLAGS is now reset only when
CONFIG_CC_IS_GCC=y.
Fix it to reset DEBUG_CFLAGS all the time.
Fixes: 121c5d08d53c ("kbuild: Only add -fno-var-tracking-assignments for old GCC versions")
Reported-by: Sedat Dilek <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Tested-by: Sedat Dilek <[email protected]>
Reviewed-by: Mark Wielaard <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions
