Skip to content

Commit

Permalink
fix: workaround upstream leveldb-library std:memory_order_relaxed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Oct 28, 2024
1 parent e44fd22 commit 04b101e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion make-demo.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

RN_VER=0.76.0-rc.6
RN_VER=0.76.0
RNFB_VER=21.0.0
FB_IOS_VER=11.3.0
FB_ANDROID_VER=33.4.0
Expand Down Expand Up @@ -259,6 +259,16 @@ if [ "$(uname)" == "Darwin" ]; then
pod repo update
npm_config_yes=true npx pod-install

# rn76 defines NDEBUG in iOS builds now by default
# leveldb-library had two invalid symbols guarded by IFDEFs for that symbol that are unmasked now
# Will be solved when upstream PR is merged and released:
# https://github.com/firebase/leveldb/pull/15
ENV_POSIX_CC="ios/Pods/leveldb-library/util/env_posix.cc"
chmod +w $ENV_POSIX_CC
sed -i -e $'s/std::memory_order::memory_order_relaxed/std::memory_order_relaxed/' $ENV_POSIX_CC
rm -f ${ENV_POSIX_CC}??


# Check iOS debug mode compile
npx react-native run-ios --mode Debug --simulator "iPhone 16"

Expand Down

0 comments on commit 04b101e

Please sign in to comment.