[compiler-rt] [ubsan] Test CFI summaries globally (PR #206434)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 02:12:45 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD compiler-rt/test/cfi/lit.cfg.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- lit.cfg.py	2026-06-29 09:10:59.000000 +0000
+++ lit.cfg.py	2026-06-29 09:12:16.885454 +0000
@@ -61,11 +61,13 @@
         (r"%debug_info_flags", " ".join(config.debug_info_flags))
     )
 else:
     config.unsupported = True
 
-default_ubsan_opts = list(config.default_sanitizer_opts) if config.default_sanitizer_opts else []
+default_ubsan_opts = (
+    list(config.default_sanitizer_opts) if config.default_sanitizer_opts else []
+)
 default_ubsan_opts.append("print_summary=1")
 default_ubsan_opts.append("report_error_type=1")
 config.environment["UBSAN_OPTIONS"] = ":".join(default_ubsan_opts)
 
 if lit_config.params.get("check_supported", None) and config.unsupported:

``````````

</details>


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


More information about the llvm-commits mailing list