[clang] Fix perf-helper.py (PR #159745)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 19 03:19:29 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Konrad Kleine (kwk)

<details>
<summary>Changes</summary>

When build with assertions, there will be an output like the following that needs to be filtered out, similar to the other ones.

`'Build config: +assertions'`

---
Full diff: https://github.com/llvm/llvm-project/pull/159745.diff


1 Files Affected:

- (modified) clang/utils/perf-training/perf-helper.py (+1) 


``````````diff
diff --git a/clang/utils/perf-training/perf-helper.py b/clang/utils/perf-training/perf-helper.py
index 29904aded5ab0..ab4491d2a6b6d 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -238,6 +238,7 @@ def get_cc1_command_for_args(cmd, env):
             or ln.startswith("LLVM Profile Note")
             or ln.startswith(" (in-process)")
             or ln.startswith("Configuration file:")
+            or ln.startswith("Build config:")
             or " version " in ln
         ):
             continue

``````````

</details>


https://github.com/llvm/llvm-project/pull/159745


More information about the cfe-commits mailing list