[llvm] 0a7a7d5 - [llvm][CAS] Enable CAS on 32-bit systems again (#159302)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Sep 17 02:54:27 PDT 2025
    
    
  
Author: David Spickett
Date: 2025-09-17T10:54:23+01:00
New Revision: 0a7a7d56fc882653335beba0d1f8ea9f26089c22
URL: https://github.com/llvm/llvm-project/commit/0a7a7d56fc882653335beba0d1f8ea9f26089c22
DIFF: https://github.com/llvm/llvm-project/commit/0a7a7d56fc882653335beba0d1f8ea9f26089c22.diff
LOG: [llvm][CAS] Enable CAS on 32-bit systems again (#159302)
dd56becdbc31cce16973172f0a447207ddf67861 has fixed the alignment problem
we were seeing on Arm 32-bit.
Added: 
    
Modified: 
    llvm/CMakeLists.txt
Removed: 
    
################################################################################
diff  --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index c63d855ea289f..9eacbc2b5abb5 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -880,8 +880,8 @@ 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 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.
+if("${CMAKE_SYSTEM_NAME}" MATCHES SunOS)
+  # Build OnDiskCAS by default only on non-Solaris machines.
   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