WSL2-Linux-Kernel/tools/scripts
David Carrillo-Cisneros 3866058ef1 perf tools: Robustify detection of clang binary
Prior to this patch, make scripts tested for CLANG with ifeq ($(CC),
clang), failing to detect CLANG binaries with different names. Fix it by
testing for the existence of __clang__ macro in the list of compiler
defined macros.

Signed-off-by: David Carrillo-Cisneros <davidcc@google.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Paul Turner <pjt@google.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20170827075442.108534-5-davidcc@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-08-28 16:44:46 -03:00
..
Makefile.arch tools build: Fix objtool build with ARCH=x86_64 2016-07-22 16:37:44 -03:00
Makefile.include perf tools: Robustify detection of clang binary 2017-08-28 16:44:46 -03:00
utilities.mak tools: Move utilities.mak from perf to tools/scripts/ 2016-03-18 13:57:20 -03:00