Skip to content

Commit 198ea23

Browse files
[CAS] Disable OnDiskCAS build on Solaris (#159122)
OnDiskCAS implementation receives error `No record locks available` on Solaris. Disable building on Solaris for now to fix buildbot failure.
1 parent f209d63 commit 198ea23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -879,10 +879,10 @@ option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
879879
option (LLVM_ENABLE_BINDINGS "Build bindings." ON)
880880
option (LLVM_ENABLE_TELEMETRY "Enable the telemetry library. If set to OFF, library cannot be enabled after build (eg., at runtime)" ON)
881881

882-
set(LLVM_ENABLE_ONDISK_CAS_default OFF)
883-
if(CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8)
884-
# Build OnDiskCAS by default only on 64 bit machine.
885-
set(LLVM_ENABLE_ONDISK_CAS_default ON)
882+
set(LLVM_ENABLE_ONDISK_CAS_default ON)
883+
if(CMAKE_SIZEOF_VOID_P LESS 8 OR "${CMAKE_SYSTEM_NAME}" MATCHES SunOS)
884+
# Build OnDiskCAS by default only on 64 bit machine that is not Solaris.
885+
set(LLVM_ENABLE_ONDISK_CAS_default OFF)
886886
endif()
887887
option(LLVM_ENABLE_ONDISK_CAS "Build OnDiskCAS." ${LLVM_ENABLE_ONDISK_CAS_default})
888888

0 commit comments

Comments
 (0)