Hermes: Compile the Hermes debug version without asserts

Created on 31 Jul 2019  路  12Comments  路  Source: facebook/hermes

Duplicating the offline discussion: the Hermes "debug" version is used for RN development and RN debugging, not for debugging Hermes. So, it should be compiled with NDEBUG, to improve performance in the common case.

enhancement

Most helpful comment

This has landed in f72b68787. Will publish an NPM soon.

All 12 comments

Is there a workaround that can be applied to existing React Native projects?

This has landed in f72b68787. Will publish an NPM soon.

@willholen any chance it will make into a build release of RN or would we have to wait for next major release?

Regardless of which RN version will use 0.2.0 by default, I believe it'll be link compatible with 0.1.1 so a simple npm install .. should allow you to update without touching RN.

@willholen any idea when the NPM package containing this fix will get published?

Sorry about the delay! We had some issues with our CI that were only resolved yesterday. The release commit and version bump is already in flight, and is currently in the internal build and regression testing stage. With no other roadblocks, it'll be out today 馃馃 (PST).

Awesome, thanks a bunch for coming through @willholen!

Celebrated too soon. This is the first fully automated release, and it appears that the .aar files have gotten lost in the process.

As an update, @azundo discovered in #109 that a linker incompatibility had indeed snuck in, which would have prevented some simple upgrades. A fix is currently in flight. Thanks for your patience!

Gotcha, thanks for keeping me in the loop!

[email protected] has now been released!

Since RN 0.60.5 still uses the previous name hermesvm, anyone trying to manually update with npm install [email protected] will need to either
A. symlink hermesvm to hermes-engine in their node_modules
B. add hermesCommand: "../../node_modules/hermes-engine/%OS-BIN%/hermes" to their project.ext.react to use the correct compiler, and similarly replace hermesvm with hermes-engine in their AAR dependencies.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

viky293 picture viky293  路  4Comments

gaodeng picture gaodeng  路  4Comments

NWU-NISL picture NWU-NISL  路  4Comments

benkane picture benkane  路  5Comments

AMorgaut picture AMorgaut  路  6Comments