We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 584dd92 commit 86cff81Copy full SHA for 86cff81
2 files changed
packages/react-native-node-api-modules/android/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.13)
2
3
project(react-native-node-api-modules)
4
set(CMAKE_CXX_STANDARD 20)
5
+# We need to disable IPO / LTO to avoid the "weak-node-api" library being optimized out of the Node-API modules.
6
+# set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
7
8
find_package(ReactAndroid REQUIRED CONFIG)
9
find_package(hermes-engine REQUIRED CONFIG)
packages/react-native-node-api-modules/android/build.gradle
@@ -120,7 +120,7 @@ android {
120
121
packagingOptions {
122
// TODO: I don't think this works - I needed to add this in the react-native package too.
123
- doNotStrip "**/libhermes.so"
+ // doNotStrip "**/*.so"
124
}
125
126
0 commit comments