Closed manuelpuyol closed 4 weeks ago
Hey @manuelpuyol, to clarify, Static Hermes is the next version of Hermes that improves performance and spec compliance, and is currently being developed on the static_h
branch. Are you trying to link against that, or are you just trying to consume the current Hermes build on main
as a static library?
hey @neildhar I was trying with the current main
branch, but can try again with static_h
though I see it's quite a bit behind main.
My goal was to generate .a
files instead of .so
so I could embed hermes in the compiled binary and be able to run it in different machines without having to compile hermes in each one
I see, unfortunately, the hermes build on main
does not have the ability to distribute a standalone .a file, but you have a few other options:
.a
file)static_h
, where we have the hermesvm_a
target that is a standalone static library. However, the static_h
branch is under very active development, so the details will change over time. (but we intend to keep the ability to produce a standalone static library)yeah that makes sense, thank you
👋 what's the current state with Static Hermes?
I've cloned main and built it with
-DHERMES_STATIC_LINK=ON
, but when I try to thehost-functions
example in https://github.com/tmikov/hermes-jsi-demos with the static build, I get a bunch ofundefined reference
errors like