[llvm] [CAS] Disable OnDiskCAS build on Solaris (PR #159122)

Steven Wu via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 09:36:46 PDT 2025


https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/159122

OnDiskCAS implementation receives error `No record locks available`
on Solaris. Disable building on Solaris for now to fix buildbot failure.


>From 3f674f0090f50d6d65fe400a131f08006697b3a2 Mon Sep 17 00:00:00 2001
From: Steven Wu <stevenwu at apple.com>
Date: Tue, 16 Sep 2025 09:36:33 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.6
---
 llvm/CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 177b2ccad8a50..c63d855ea289f 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -879,10 +879,10 @@ option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
 option (LLVM_ENABLE_BINDINGS "Build bindings." ON)
 option (LLVM_ENABLE_TELEMETRY "Enable the telemetry library. If set to OFF, library cannot be enabled after build (eg., at runtime)" ON)
 
-set(LLVM_ENABLE_ONDISK_CAS_default OFF)
-if(CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8)
-  # Build OnDiskCAS by default only on 64 bit machine.
-  set(LLVM_ENABLE_ONDISK_CAS_default ON)
+set(LLVM_ENABLE_ONDISK_CAS_default ON)
+if(CMAKE_SIZEOF_VOID_P LESS 8 OR "${CMAKE_SYSTEM_NAME}" MATCHES SunOS)
+  # Build OnDiskCAS by default only on 64 bit machine that is not Solaris.
+  set(LLVM_ENABLE_ONDISK_CAS_default OFF)
 endif()
 option(LLVM_ENABLE_ONDISK_CAS "Build OnDiskCAS." ${LLVM_ENABLE_ONDISK_CAS_default})
 



More information about the llvm-commits mailing list