Skip to content

Commit ad2c8de

Browse files
author
git apple-llvm automerger
committed
Merge commit 'de7ee2e3ae89' from llvm.org/release/19.x into stable/20240723
2 parents 0123db6 + de7ee2e commit ad2c8de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bolt/test/perf2bolt/lit.local.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import shutil
2+
import subprocess
23

3-
if shutil.which("perf") is not None:
4-
config.available_features.add("perf")
4+
if shutil.which("perf") is not None and subprocess.run(["perf", "record", "-e", "cycles:u", "-o", "/dev/null", "--", "perf", "--version"], capture_output=True).returncode == 0:
5+
config.available_features.add("perf")

0 commit comments

Comments
 (0)