[llvm] 195ab4f - [CAS] Default to only build OnDiskCAS on 64 bit machine (#158737)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 15 14:12:59 PDT 2025
Author: Steven Wu
Date: 2025-09-15T21:12:55Z
New Revision: 195ab4f807e46df5ecfe20576b4a6ca3a433d4cd
URL: https://github.com/llvm/llvm-project/commit/195ab4f807e46df5ecfe20576b4a6ca3a433d4cd
DIFF: https://github.com/llvm/llvm-project/commit/195ab4f807e46df5ecfe20576b4a6ca3a433d4cd.diff
LOG: [CAS] Default to only build OnDiskCAS on 64 bit machine (#158737)
To workaroud the buildbot failure on clang-armv8-quick, which builds
with triple: armv8l-unknown-linux-gnueabihf.
Added:
Modified:
llvm/CMakeLists.txt
Removed:
################################################################################
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")
More information about the llvm-commits
mailing list