diff options
| author | Masahiro Yamada <[email protected]> | 2023-02-19 14:15:55 +0000 |
|---|---|---|
| committer | John Paul Adrian Glaubitz <[email protected]> | 2023-07-05 16:55:25 +0000 |
| commit | 4bd04b2037423f11e6be03709d1fccdc6045c4a1 (patch) | |
| tree | 267f76e05c3827c13fb88bc68ccb495df275ba57 /scripts/clang-tools/gen_compile_commands.py | |
| parent | sh: Refactor header include path addition (diff) | |
| download | kernel-4bd04b2037423f11e6be03709d1fccdc6045c4a1.tar.gz kernel-4bd04b2037423f11e6be03709d1fccdc6045c4a1.zip | |
sh: Remove compiler flag duplication
Every compiler flag added by arch/sh/Makefile is passed to the
compiler twice:
$(KBUILD_CPPFLAGS) + $(KBUILD_CFLAGS) is used for compiling *.c
$(KBUILD_CPPFLAGS) + $(KBUILD_AFLAGS) is used for compiling *.S
Given the above, adding $(cflags-y) to all of KBUILD_{CPP/C/A}FLAGS
ends up with duplication.
Add -I options to $(KBUILD_CPPFLAGS), and the rest of $(cflags-y)
to KBUILD_{C,A}FLAGS.
Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Reviewed-by: John Paul Adrian Glaubitz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
