[compiler-rt] [sanitizer_common] [Darwin] OS/feature detection should use the run-wrapper (PR #171167)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 8 09:57:52 PST 2025
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/builtins/lit.cfg.py compiler-rt/test/lit.common.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.common.cfg.py 2025-12-08 17:55:31.000000 +0000
+++ lit.common.cfg.py 2025-12-08 17:57:25.002478 +0000
@@ -584,11 +584,13 @@
config.darwin_os_version = darwin_os_version
# Detect x86_64h
try:
- output = subprocess.check_output(os_detection_prefix + ["sysctl", "hw.cpusubtype"])
+ output = subprocess.check_output(
+ os_detection_prefix + ["sysctl", "hw.cpusubtype"]
+ )
output_re = re.match("^hw.cpusubtype: ([0-9]+)$", output)
if output_re:
cpu_subtype = int(output_re.group(1))
if cpu_subtype == 8: # x86_64h
config.available_features.add("x86_64h")
``````````
</details>
https://github.com/llvm/llvm-project/pull/171167
More information about the llvm-commits
mailing list