Commit efb0b232 authored by Song Liu's avatar Song Liu Committed by Arnaldo Carvalho de Melo

perf build: Improve error message for old/missing clang

clang is required to build perf with BUILD_BPF_SKEL=1. Improve the
error message to highlight that:

  1) clang could be either missing or too old;
  2) clang is only required with BUILD_BPF_SKEL=1.
Suggested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 8df12cbc
...@@ -635,7 +635,7 @@ endif ...@@ -635,7 +635,7 @@ endif
ifdef BUILD_BPF_SKEL ifdef BUILD_BPF_SKEL
$(call feature_check,clang-bpf-co-re) $(call feature_check,clang-bpf-co-re)
ifeq ($(feature-clang-bpf-co-re), 0) ifeq ($(feature-clang-bpf-co-re), 0)
dummy := $(error Error: clang too old. Please install recent clang) dummy := $(error Error: clang too old/not installed. Please install recent clang to build with BUILD_BPF_SKEL)
endif endif
$(call detected,CONFIG_PERF_BPF_SKEL) $(call detected,CONFIG_PERF_BPF_SKEL)
CFLAGS += -DHAVE_BPF_SKEL CFLAGS += -DHAVE_BPF_SKEL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment