fix: add __-prefixed runtime primitives for El compiler #21

Merged
will.anderson merged 1 commits from fix/ci-openssl-linker into dev 2026-05-07 01:40:38 +00:00
Owner

Adds 46 __-prefixed function aliases/implementations that the current El compiler generates calls to from within compiled El stdlib code. Without these, elb, epm, and el-install all fail to link.

Adds 46 __-prefixed function aliases/implementations that the current El compiler generates calls to from within compiled El stdlib code. Without these, elb, epm, and el-install all fail to link.
will.anderson added 1 commit 2026-05-07 01:36:57 +00:00
fix: add __-prefixed runtime primitives expected by El compiler
El SDK CI - dev / build-and-test (pull_request) Successful in 3m22s
254cbe0ac2
The El compiler generates calls to __-prefixed C primitives from within
El stdlib compiled code (e.g. __println, __str_len, __json_get, etc).
These were absent from el_runtime.c, causing linker failures when
building el-install, elb, or epm with the current compiler.

Add 46 __-prefixed aliases/implementations in el_runtime.c covering:
- I/O: __println, __print, __readline
- String: __str_len, __str_cmp, __str_ncmp, __str_alloc, __str_set_char,
  __str_concat_raw, __str_slice_raw, __str_char_at, plus numeric converters
- FS: __fs_read, __fs_write, __fs_exists, __fs_mkdir, __fs_list_raw, etc
- HTTP: __http_do, __http_do_map, __http_serve, __http_serve_v2,
  __http_response, __http_sse_* (weak stubs)
- JSON: __json_get, __json_set, __json_parse_map, __json_stringify_val, etc
- State, env, exec, uuid, sha256, args
will.anderson merged commit 2fd298df55 into dev 2026-05-07 01:40:38 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/el#21