Skip to content

Commit 9cd067e

Browse files
fix(ios): define BLAKE3_NO_* macros for x86_64 simulator (#917)
1 parent 669c9e5 commit 9cd067e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/react-native-quick-crypto/QuickCrypto.podspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ Pod::Spec.new do |s|
168168
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
169169
"CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES",
170170
# Exclude ARM NEON source when building x86_64 simulator (no NEON support).
171-
"EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*][arch=x86_64]" => "deps/blake3/c/blake3_neon.c"
171+
"EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*][arch=x86_64]" => "deps/blake3/c/blake3_neon.c",
172+
# Disable x86 SIMD intrinsics on iOS simulator — the .c implementation files are already
173+
# excluded above, but blake3_dispatch.c still references the symbols unless these macros
174+
# are defined. Mirrors the Android CMakeLists.txt approach (line 18-22).
175+
"GCC_PREPROCESSOR_DEFINITIONS[sdk=iphonesimulator*][arch=x86_64]" => "$(inherited) BLAKE3_NO_AVX512 BLAKE3_NO_AVX2 BLAKE3_NO_SSE41 BLAKE3_NO_SSE2"
172176
}
173177

174178
# Add cpp subdirectories to header search paths

0 commit comments

Comments
 (0)