aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJames Clark <james.clark@linaro.org>2026-10-01 16:48:10 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-10-02 18:19:35 +0200
commit2ed38aa8a52d3e245a9f71b98825ad7f77956d50 (patch)
treec121dd087759ea20c991ed58b86142dfdcdebed1 /scripts/Makefile.thinlto
parentperf trace: Increase TRACE_AUG_MAX_BUF to 128 and document beauty_map encoding (diff)
perf python: Track linked libraries as extension dependencies
Since the Python extension switched to linking perf libraries, setup.py only lists util/python.c as a source. The libraries are supplied through LDFLAGS, which setuptools does not consider when deciding whether the extension needs to be rebuilt. When a library changes, make invokes setup.py, but setuptools can skip the build and the recipe copies the stale cached extension back into python/. This leaves perf and its Python module running different versions of the same code. Pass the linked library paths to setup.py and declare them as Extension dependencies so that library changes trigger a rebuild. Include EXTRA_PERFLIBS in the shared library list so that both make and setuptools track those inputs as well, preserving the existing linker order. Fixes: 9dabf4003423c8d3 ("perf python: Switch module to linking libraries from building source") Reviewed-by: Ian Rogers <irogers@google.com> Assisted-by: Codex:GPT-6-Astra Signed-off-by: James Clark <james.clark@linaro.org> [ Applied manually to address some fuzz ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions