[compiler-rt] [2/2] support build sanitizer lit test case with libc++ (PR #72470)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 19:52:47 PST 2023


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 84044061e880bd6c7994cb2e3048a073cf76a683..20f8974d23f675e4fb572d3bb2333ccaee17ce8b compiler-rt/test/asan/lit.cfg.py compiler-rt/test/hwasan/lit.cfg.py compiler-rt/test/lsan/lit.common.cfg.py compiler-rt/test/msan/lit.cfg.py compiler-rt/test/ubsan/lit.common.cfg.py compiler-rt/test/ubsan_minimal/lit.common.cfg.py
``````````

</details>

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

``````````diff
--- asan/lit.cfg.py	2023-11-16 03:06:51.000000 +0000
+++ asan/lit.cfg.py	2023-11-16 03:52:40.683336 +0000
@@ -71,11 +71,13 @@
     + config.debug_info_flags
     + target_cflags
 )
 if config.target_arch == "s390x":
     clang_asan_static_cflags.append("-mbackchain")
-clang_asan_static_cxxflags = config.cxx_mode_flags + extra_libcxx_flags + clang_asan_static_cflags
+clang_asan_static_cxxflags = (
+    config.cxx_mode_flags + extra_libcxx_flags + clang_asan_static_cflags
+)
 
 target_is_msvc = bool(re.match(r".*-windows-msvc$", config.target_triple))
 
 asan_dynamic_flags = []
 if config.asan_dynamic:
--- hwasan/lit.cfg.py	2023-11-16 03:06:51.000000 +0000
+++ hwasan/lit.cfg.py	2023-11-16 03:52:40.729110 +0000
@@ -46,11 +46,13 @@
     extra_libcxx_flags = config.libcxx_flags
 else:
     extra_libcxx_flags = []
 
 clang_hwasan_cxxflags = config.cxx_mode_flags + extra_libcxx_flags + clang_hwasan_cflags
-clang_hwasan_oldrt_cxxflags = config.cxx_mode_flags + extra_libcxx_flags + clang_hwasan_oldrt_cflags
+clang_hwasan_oldrt_cxxflags = (
+    config.cxx_mode_flags + extra_libcxx_flags + clang_hwasan_oldrt_cflags
+)
 
 
 def build_invocation(compile_flags):
     return " " + " ".join([config.clang] + compile_flags) + " "
 

``````````

</details>


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


More information about the llvm-commits mailing list