[compiler-rt] [sanitizer_common] Disable SanitizerCommon lsan tests on Apple arm64 (PR #151929)

via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 02:34:28 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Dan Blackwell (DanBlackwell)

<details>
<summary>Changes</summary>

There is an issue tracking lsan incompatibility on these platforms: https://github.com/llvm/llvm-project/issues/131678. Many of these tests are currently failing and creating CI noise.

rdar://157252316

---
Full diff: https://github.com/llvm/llvm-project/pull/151929.diff


1 Files Affected:

- (modified) compiler-rt/test/sanitizer_common/CMakeLists.txt (+1-1) 


``````````diff
diff --git a/compiler-rt/test/sanitizer_common/CMakeLists.txt b/compiler-rt/test/sanitizer_common/CMakeLists.txt
index 615666676f57a..e455092a98875 100644
--- a/compiler-rt/test/sanitizer_common/CMakeLists.txt
+++ b/compiler-rt/test/sanitizer_common/CMakeLists.txt
@@ -91,7 +91,7 @@ foreach(tool ${SUPPORTED_TOOLS})
     # so don't run the tests by default.
     if (NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin" AND
              ${tool} STREQUAL "lsan" AND
-             ${arch} STREQUAL "i386"))
+             (${arch} STREQUAL "i386" OR ${arch} MATCHES "arm64")))
       list(APPEND SANITIZER_COMMON_TESTSUITES
            ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
     endif()

``````````

</details>


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


More information about the llvm-commits mailing list