Skip to content

Commit ab9f53b

Browse files
authored
Merge branch 'main' into fix-msvc-mutex-crash
2 parents 44ebf18 + e5c95d8 commit ab9f53b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ if(FIRESTORE_USE_EXTERNAL_CMAKE_BUILD)
365365
CACHE BOOL "Force Firestore build tests to match")
366366
endif()
367367

368+
# Disable Snappy's BMI2 optimizations for broader CPU compatibility.
369+
# BMI2 instructions cause Illegal Instruction crashes on older CPUs that don't support BMI2.
370+
set(SNAPPY_HAVE_BMI2 0 CACHE INTERNAL "Disable BMI2 for CPU compatibility" FORCE)
371+
368372
add_subdirectory(${FIRESTORE_SOURCE_DIR} ${FIRESTORE_BINARY_DIR})
369373

370374
copy_subdirectory_definition(${FIRESTORE_SOURCE_DIR} NANOPB_SOURCE_DIR)

0 commit comments

Comments
 (0)