]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - scripts/Kbuild.include
net: revert "net_sched: move tp->root allocation into fw_init()"
[karo-tx-linux.git] / scripts / Kbuild.include
index 608ac65c61e34c3cd0e4975c70da62794b3ce61a..1db6d73c8dd2bdfeec2cae452dffc8791b3ef645 100644 (file)
@@ -128,6 +128,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))