Commit 601a706
committed
host: match hermes_napi_create_env C linkage after upstream #2106
The pinned Hermes commit now includes facebook/hermes#2106, which wraps the
public hermes_napi_* entry points in extern "C". Hermes therefore exports the
unmangled C symbol for hermes_napi_create_env.
CxxNodeApiHostModule forward-declares that entry point (to avoid including
Hermes' node_api.h) but did so with C++ linkage, so it referenced the mangled
name. After the pin bump the two no longer matched and the iOS app failed to
link with "Undefined symbol: hermes_napi_create_env".
Wrap the forward declaration in extern "C" so the reference resolves to the
exported unmangled symbol.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TVfanKvtyfSsoMgZv3DJtY1 parent 4820937 commit 601a706
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
0 commit comments