[compiler-rt] Enable build and testing of asan on AIX (PR #137186)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 24 07:41:54 PDT 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 HEAD~1...HEAD compiler-rt/test/asan/lit.cfg.py compiler-rt/test/lit.common.cfg.py
``````````

</details>

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

``````````diff
--- lit.common.cfg.py	2025-04-24 14:39:27.000000 +0000
+++ lit.common.cfg.py	2025-04-24 14:41:25.473274 +0000
@@ -908,37 +908,37 @@
                 r"-Wl,-R\$ORIGIN -L%T -l%xdynamiclib_namespec" + postfix,
             )
         )
         config.substitutions.append(("%ld_flags_rpath_so" + postfix, ""))
     elif config.host_os == "AIX":
-         config.substitutions.append(
-             (
-                 "%ld_flags_rpath_exe" + postfix,
-                 "-L%T -l%xdynamiclib_namespec" + postfix,
-             )
-         )
-         config.substitutions.append(("%ld_flags_rpath_so" + postfix, ""))
+        config.substitutions.append(
+            (
+                "%ld_flags_rpath_exe" + postfix,
+                "-L%T -l%xdynamiclib_namespec" + postfix,
+            )
+        )
+        config.substitutions.append(("%ld_flags_rpath_so" + postfix, ""))
 
     # Must be defined after the substitutions that use %dynamiclib.
     config.substitutions.append(
         ("%dynamiclib" + postfix, "%T/%xdynamiclib_filename" + postfix)
     )
 
     if config.host_os == "AIX":
-         config.substitutions.append(
-             (
-                 "%xdynamiclib_filename" + postfix,
-                 "lib%xdynamiclib_namespec{}.a".format(postfix)
-             )
-         )
+        config.substitutions.append(
+            (
+                "%xdynamiclib_filename" + postfix,
+                "lib%xdynamiclib_namespec{}.a".format(postfix),
+            )
+        )
     else:
-         config.substitutions.append(
-             (
-                 "%xdynamiclib_filename" + postfix,
-                 "lib%xdynamiclib_namespec{}.so".format(postfix),
-             )
-         )
+        config.substitutions.append(
+            (
+                "%xdynamiclib_filename" + postfix,
+                "lib%xdynamiclib_namespec{}.so".format(postfix),
+            )
+        )
 
     config.substitutions.append(("%xdynamiclib_namespec", "%basename_t.dynamic"))
 
 config.default_sanitizer_opts = []
 if config.host_os == "Darwin":

``````````

</details>


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


More information about the llvm-commits mailing list