perf build: Gracefully fail the build if BUILD_BPF_SKEL=1 is specified and clang...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 9 May 2023 18:42:38 +0000 (15:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 10 May 2023 15:54:56 +0000 (12:54 -0300)
commitb0618f38e2ab8ce3f094e4973955cfdbb55fceea
tree43ff93c4d0eea91a4885442dbb6eab070958c471
parent5f0b89e632ed81b69993f3e68ed924ca3874d0d0
perf build: Gracefully fail the build if BUILD_BPF_SKEL=1 is specified and clang isn't available

Build BPF skels require having a compiler able to generate BPF bytecode,
and so far this is only possible with clang, so check for its
availability and fail the build when the user explicitely ask for BPF
skels to be built.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>,
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Song Liu <songliubraving@meta.com>
Yang: Yang Jihong <yangjihong1@huawei.com>,
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.config