diff options
author | Ian Rogers <irogers@google.com> | 2023-01-26 22:06:06 +0300 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-02-01 20:15:18 +0300 |
commit | cd955bdd6aa5ec54cdef622a142f8899a64b5446 (patch) | |
tree | 729a92ef012b90e68e36ee2e09729041d8391645 /tools/perf/scripts/python/task-analyzer.py | |
parent | 8c4526ca6a45e7ff915c2b33b54db6b773291fac (diff) | |
download | linux-cd955bdd6aa5ec54cdef622a142f8899a64b5446.tar.xz |
objtool: Fix HOSTCC flag usage
HOSTCC is always wanted when building objtool. Setting CC to HOSTCC
happens after tools/scripts/Makefile.include is included, meaning
flags (like CFLAGS) are set assuming say CC is gcc, but then it can be
later set to HOSTCC which may be clang. tools/scripts/Makefile.include
is needed for host set up and common macros in objtool's
Makefile. Rather than override the CC variable to HOSTCC, just pass CC
as HOSTCC to the sub-makes of Makefile.build, the libsubcmd builds and
also to the linkage step.
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20230126190606.40739-4-irogers@google.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions