perf: Replace deprecated -target with --target= for Clang
authorFangrui Song <maskray@google.com>
Sat, 24 Jun 2023 00:27:08 +0000 (00:27 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 27 Jun 2023 19:13:22 +0000 (12:13 -0700)
commit78987bb02ad29161a75d7c512822232321250d1d
treeb17a46df6f50d8d8ebbcd0d6a2ee7f7f20a1e6aa
parent710dffc969023315c3c32717dc08b543012e60d8
perf: Replace deprecated -target with --target= for Clang

-target has been deprecated since Clang 3.4 in 2013. Use the preferred
--target=bpf form instead. This matches how we use --target= in
scripts/Makefile.clang.

Signed-off-by: Fangrui Song <maskray@google.com>
Acked-by: Yonghong Song <yhs@fb.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: llvm@lists.linux.dev
Cc: Ingo Molnar <mingo@redhat.com>
Cc: bpf@vger.kernel.org
Link: https://github.com/llvm/llvm-project/commit/274b6f0c87a6a1798de0a68135afc7f95def6277
Link: https://lore.kernel.org/r/20230624002708.1907962-1-maskray@google.com
[ resolved a conflict with GEN_VMLINUX_H changes ]
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/Documentation/perf-config.txt
tools/perf/Makefile.perf
tools/perf/util/llvm-utils.c