Skip to content

Commit

Permalink
[LOCAL] Fix performance issues in Hermes when Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Cipolleschi committed May 30, 2023
1 parent 32327cc commit 60a452b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-native/ReactAndroid/hermes-engine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ android {
// This has the (unlucky) side effect of letting AGP call the build
// tasks `configureCMakeRelease` while is actually building the debug flavor.
arguments "-DCMAKE_BUILD_TYPE=Release"
// Adding -O3 to patch the issue here: https://github.com/android/ndk/issues/1740#issuecomment-1198438260
cppFlags "-O3"
}
}
}
Expand Down

0 comments on commit 60a452b

Please sign in to comment.