From aea67b934f10020097a2d3dfd05098d7b9a1d1f7 Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Mon, 15 Sep 2025 13:43:17 -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, 7 insertions(+), 1 deletion(-) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index e8af7fb432f40..177b2ccad8a50 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -878,7 +878,13 @@ option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF) 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) -option (LLVM_ENABLE_ONDISK_CAS "Build OnDiskCAS." 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) +endif() +option(LLVM_ENABLE_ONDISK_CAS "Build OnDiskCAS." ${LLVM_ENABLE_ONDISK_CAS_default}) set(LLVM_INSTALL_DOXYGEN_HTML_DIR "${CMAKE_INSTALL_DOCDIR}/llvm/doxygen-html" CACHE STRING "Doxygen-generated HTML documentation install directory")