X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=scripts%2FKbuild.include;h=30e6e316ac1b2565f13436f2d81a2230e1fe5bfc;hb=61ccd886e2b3751da40a3ecf0e3cd6c91557e9e3;hp=98e09ce5fbf16f03fff204d2aa11aff0e36bd463;hpb=7c0e5d865ff0b86dfce492b656238919c659d756;p=u-boot diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 98e09ce5fb..30e6e316ac 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -130,6 +130,10 @@ cc-option-align = $(subst -functions=0,,\ cc-disable-warning = $(call try-run,\ $(CC) $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1))) +# cc-name +# Expands to either gcc or clang +cc-name = $(shell $(CC) -v 2>&1 | grep -q "clang version" && echo clang || echo gcc) + # cc-version cc-version = $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-version.sh $(CC))