We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44ebf18 + e5c95d8 commit ab9f53bCopy full SHA for ab9f53b
1 file changed
CMakeLists.txt
@@ -365,6 +365,10 @@ if(FIRESTORE_USE_EXTERNAL_CMAKE_BUILD)
365
CACHE BOOL "Force Firestore build tests to match")
366
endif()
367
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
+
372
add_subdirectory(${FIRESTORE_SOURCE_DIR} ${FIRESTORE_BINARY_DIR})
373
374
copy_subdirectory_definition(${FIRESTORE_SOURCE_DIR} NANOPB_SOURCE_DIR)
0 commit comments