Skip to content

Commit bfd2b69

Browse files
authored
fix(ios): exclude blake3_neon on x86_64 simulator (#884)
1 parent 8491593 commit bfd2b69

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ Pod::Spec.new do |s|
123123
"GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) FOLLY_NO_CONFIG FOLLY_CFG_NO_COROUTINES",
124124
# Set C++ standard to C++20
125125
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
126-
"CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES"
126+
"CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES",
127+
# Exclude ARM NEON source when building x86_64 simulator (no NEON support).
128+
"EXCLUDED_SOURCE_FILE_NAMES[sdk=iphonesimulator*][arch=x86_64]" => "deps/blake3/c/blake3_neon.c"
127129
}
128130

129131
# Add cpp subdirectories to header search paths

0 commit comments

Comments
 (0)