]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf build python: Don't leave a.out file when building with clang
authorIan Rogers <irogers@google.com>
Tue, 7 Oct 2025 15:38:35 +0000 (08:38 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 13 Oct 2025 08:58:51 +0000 (01:58 -0700)
commit6090e612cf24393335e709105db31b6d6e36d6ef
tree9723ab53c4536708c91ac478325ad1b096ac7dbd
parent12690401a4393238c391b7a6a861a28d26374013
perf build python: Don't leave a.out file when building with clang

Testing clang features doesn't specify a "-o" option so an a.out file
is created and left in the make directory (not the output). Fix this
by specifying a "-o" of "/dev/null". Reorganize the code a little to
help with readability.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/setup.py