Skip to content

Commit 60a452b

Browse files
author
Riccardo Cipolleschi
committed
[LOCAL] Fix performance issues in Hermes when Debug
1 parent 32327cc commit 60a452b

File tree

1 file changed

+2
-0
lines changed
  • packages/react-native/ReactAndroid/hermes-engine

1 file changed

+2
-0
lines changed

packages/react-native/ReactAndroid/hermes-engine/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ android {
181181
// This has the (unlucky) side effect of letting AGP call the build
182182
// tasks `configureCMakeRelease` while is actually building the debug flavor.
183183
arguments "-DCMAKE_BUILD_TYPE=Release"
184+
// Adding -O3 to patch the issue here: https://github.com/android/ndk/issues/1740#issuecomment-1198438260
185+
cppFlags "-O3"
184186
}
185187
}
186188
}

0 commit comments

Comments
 (0)