[flang-commits] [clang] [flang] [flang] Fixes for LIT testing of FLANG_RUNTIME_F128_MATH_LIB build. (PR #82832)

via flang-commits flang-commits at lists.llvm.org
Fri Feb 23 13:16:07 PST 2024


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 162fa4dd25d631d0ab7816ec6081bcaff951a23c...81ea8a2cf3a1cb4b9e99d590f7a80b156fe609b8 flang/test/lit.cfg.py
``````````

</details>

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

``````````diff
--- lit.cfg.py	2024-02-23 21:11:57.000000 +0000
+++ lit.cfg.py	2024-02-23 21:16:00.451451 +0000
@@ -204,19 +204,12 @@
 # %f128-lib substitution may be used to generate check prefixes
 # for LIT tests checking for F128 library support.
 if config.flang_runtime_f128_math_lib:
     config.available_features.add("flang-supports-f128-math")
     config.available_features.add(
-        "flang-f128-math-lib-" + config.flang_runtime_f128_math_lib)
+        "flang-f128-math-lib-" + config.flang_runtime_f128_math_lib
+    )
     config.substitutions.append(
-        (
-            "%f128-lib",
-            config.flang_runtime_f128_math_lib.upper()
-        )
-    )
-else:
-    config.substitutions.append(
-        (
-            "%f128-lib",
-            "NONE"
-        )
-    )
+        ("%f128-lib", config.flang_runtime_f128_math_lib.upper())
+    )
+else:
+    config.substitutions.append(("%f128-lib", "NONE"))

``````````

</details>


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


More information about the flang-commits mailing list