perf build: Fix ccache usage in $(CC) when generating arch errno table
Antonio Terceiro authored
This was introduced by commit e4ffd066 ("perf: Normalize gcc
parameter when generating arch errno table").

Assuming the first word of $(CC) is the actual compiler breaks usage
like CC="ccache gcc": the script ends up calling ccache directly with
gcc arguments, what fails. Instead of getting the first word, just
remove from $(CC) any word that starts with a "-". This maintains the
spirit of the original patch, while not breaking ccache users.

Fixes: e4ffd066

 ("perf: Normalize gcc parameter when generating arch errno table")
Signed-off-by: default avatarAntonio Terceiro <antonio.terceiro@linaro.org>
Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: He Zhe <zhe.he@windriver.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: http:...
dacfc08d
Name Last commit Last update
..
Documentation perf tools: Fix documentation of verbose options
arch perf tools: Clean 'generated' directory used for creating the syscall table on x86
bench perf bench numa: Fix the condition checks for max number of NUMA nodes
examples/bpf perf bpf examples: Fix bpf.h header include directive in 5sec.c example
include/bpf perf bpf: Remove bpf/ subdir from bpf.h headers used to build bpf events
jvmti perf jvmti: Remove redundant jitdump line table entries
pmu-events perf vendor events arm64: Add JSON metrics for imx8mp DDR Perf
python tweewide: Fix most Shebang lines
scripts perf script: Add min, max to futex-contention output, in addition to avg
tests perf buildid-cache: Add test for 16-byte build-id
trace tools arch x86: Sync the msr-index.h copy with the kernel sources
ui perf annotate: Do not jump after 'k' is pressed
util perf traceevent: Ensure read cmdlines are null terminated.
.gitignore .gitignore: add SPDX License Identifier
Build perf daemon: Add daemon command
CREDITS perf_counter tools: Add CREDITS file for Git contributors
MANIFEST libperf: Move to tools/lib/perf
Makefile tools: Let O= makes handle a relative path with -C option
Makefile.config perf build: Support build BPF skeletons with perf
Makefile.perf perf build: Fix ccache usage in $(CC) when generating arch errno table
builtin-annotate.c perf evlist: Use the right prefix for 'struct evlist' event group methods
builtin-bench.c perf bench: Add build-id injection benchmark
builtin-buildid-cache.c perf buildid-cache: Add --debuginfod option to specify a server to fetch debug files
builtin-buildid-list.c perf buildid-list: Add support for mmap2's buildid events
builtin-c2c.c perf c2c: Support data block and addr block
builtin-config.c
builtin-daemon.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
builtin-help.c
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c
builtin-report.c
builtin-sched.c
builtin-script.c
builtin-stat.c
builtin-timechart.c
builtin-top.c
builtin-trace.c
builtin-version.c
builtin.h
check-headers.sh
command-list.txt
design.txt
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h