summaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-02-13 15:55:17 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2025-02-16 03:10:58 +0900
commit1b71c2fb04e7a713abc6edde4a412416ff3158f2 (patch)
tree6963531f6f9ab645e747c644c27e10b01eb900dc /scripts/clang-tools/gen_compile_commands.py
parent140332b6ed727a4ec2e5722a1ccda28b52d45771 (diff)
downloadlinux-1b71c2fb04e7a713abc6edde4a412416ff3158f2.tar.gz
linux-1b71c2fb04e7a713abc6edde4a412416ff3158f2.tar.bz2
linux-1b71c2fb04e7a713abc6edde4a412416ff3158f2.zip
kbuild: userprogs: fix bitsize and target detection on clang
scripts/Makefile.clang was changed in the linked commit to move --target from KBUILD_CFLAGS to KBUILD_CPPFLAGS, as that generally has a broader scope. However that variable is not inspected by the userprogs logic, breaking cross compilation on clang. Use both variables to detect bitsize and target arguments for userprogs. Fixes: feb843a469fb ("kbuild: add $(CLANG_FLAGS) to KBUILD_CPPFLAGS") Cc: stable@vger.kernel.org Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions