[clang] [compiler-rt] [XRay][Darwin] Enable XRay runtime on macOS (arm64/x86_64) (PR #196848)

via llvm-commits llvm-commits at lists.llvm.org
Sun May 10 16:51:53 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/xray/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-05-10 23:45:58.000000 +0000
+++ lit.cfg.py	2026-05-10 23:51:14.571779 +0000
@@ -42,11 +42,14 @@
 config.substitutions.append(("%clang_xray ", build_invocation(clang_xray_cflags)))
 config.substitutions.append(("%clangxx_xray", build_invocation(clang_xray_cxxflags)))
 config.substitutions.append(("%llvm_xray", llvm_xray))
 if config.target_os == "Darwin":
     config.substitutions.append(
-        ("%xray_rt_path", os.path.join(config.compiler_rt_libdir, "libclang_rt.xray_osx.a"))
+        (
+            "%xray_rt_path",
+            os.path.join(config.compiler_rt_libdir, "libclang_rt.xray_osx.a"),
+        )
     )
 config.substitutions.append(
     (
         "%xraylib",
         (

``````````

</details>


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


More information about the llvm-commits mailing list