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

Dan Blackwell via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 04:08:40 PDT 2025


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

>From ecb227a0a3d2598c97bb067525632c610577029f Mon Sep 17 00:00:00 2001
From: Dan Blackwell <dan_blackwell at apple.com>
Date: Mon, 4 Aug 2025 10:30:39 +0100
Subject: [PATCH] [sanitizer_common] Disable SanitizerCommon lsan tests on
 Apple arm64

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.
---
 compiler-rt/test/sanitizer_common/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/compiler-rt/test/sanitizer_common/CMakeLists.txt b/compiler-rt/test/sanitizer_common/CMakeLists.txt
index 615666676f57a..7596e2005a3b5 100644
--- a/compiler-rt/test/sanitizer_common/CMakeLists.txt
+++ b/compiler-rt/test/sanitizer_common/CMakeLists.txt
@@ -89,9 +89,10 @@ foreach(tool ${SUPPORTED_TOOLS})
       ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)
     # FIXME(dliew): LSan i386 on Darwin is completely broken right now.
     # so don't run the tests by default.
+    # Tests fail on arm64, see https://github.com/llvm/llvm-project/issues/131678
     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()



More information about the llvm-commits mailing list