Skip to content

Commit 3edf62e

Browse files
committed
[CMake] Only enable LLVM_ENABLE_ONDISK_CAS_default for 64-bit or larger architectures
1 parent 96a4cf5 commit 3edf62e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF)
625625
option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
626626
option (LLVM_ENABLE_BINDINGS "Build bindings." ON)
627627

628-
if(UNIX)
628+
if(UNIX AND CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8)
629629
set(LLVM_ENABLE_ONDISK_CAS_default ON)
630630
else()
631631
set(LLVM_ENABLE_ONDISK_CAS_default OFF)

0 commit comments

Comments
 (0)