[compiler-rt] [asan][windows][tests] support MSVC compiler-id in asan tests (PR #109706)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 12:07:18 PDT 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 27b5dc422cd3dc15b3d4410ba910d4b12272384d...7d5433c17251662d99e8074e0ae1b578e89f868d compiler-rt/test/asan/lit.cfg.py
``````````

</details>

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

``````````diff
--- lit.cfg.py	2024-09-23 18:27:31.000000 +0000
+++ lit.cfg.py	2024-09-23 19:06:49.957078 +0000
@@ -151,14 +151,18 @@
     )
 
 if platform.system() == "Windows":
     # MSVC-specific tests might also use the clang-cl.exe driver.
     if target_is_msvc:
-        clang_cl_cxxflags = [
-            "-WX",
-            "-D_HAS_EXCEPTIONS=0",
-        ] + config.debug_info_flags + target_cflags
+        clang_cl_cxxflags = (
+            [
+                "-WX",
+                "-D_HAS_EXCEPTIONS=0",
+            ]
+            + config.debug_info_flags
+            + target_cflags
+        )
         if config.compiler_id != "MSVC":
             clang_cl_cxxflags = ["-Wno-deprecated-declarations"] + clang_cl_cxxflags
         clang_cl_asan_cxxflags = ["-fsanitize=address"] + clang_cl_cxxflags
         if config.asan_dynamic:
             clang_cl_asan_cxxflags.append("-MD")

``````````

</details>


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


More information about the llvm-commits mailing list