[MC,test] Improve nesting macro test
[llvm-project.git] / bolt / test / perf2bolt / lit.local.cfg
blob0fecf913aa98b88fc643c31b1b7bd39b5f3dbbb1
1 import shutil
2 import subprocess
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")