aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
diff options
context:
space:
mode:
authorMax Coplan <mchcopl@gmail.com>2026-08-18 01:16:35 -0700
committerGitHub <noreply@github.com>2026-08-18 04:16:35 -0400
commit750c665ab38e7a5ff59fc6206740f82bbfab5fda (patch)
treec9c2613147dd569aa73984c7cd8969b1b8c78cc1 /runtime/lua
parent4a77d1e1db937f230a39100c597cb67d0d5d4a07 (diff)
downloadrneovim-750c665ab38e7a5ff59fc6206740f82bbfab5fda.tar.gz
rneovim-750c665ab38e7a5ff59fc6206740f82bbfab5fda.tar.bz2
rneovim-750c665ab38e7a5ff59fc6206740f82bbfab5fda.zip
build(zig): keep all symbols for native Lua modules #41361
Native Lua modules loaded with `require` or `package.loadlib` resolve Lua C API symbols from the nvim executable itself. Those symbols must stay in the binary even when nothing inside nvim references them. `rdynamic` is enough on Linux. On macOS the linker dead-strips unreferenced symbols before rdynamic exports them, so `_lua_tothread` is missing from the executable and loading such a module fails with: symbol not found in flat namespace '_lua_tothread' Disable section garbage collection so all non-static symbols are kept.
Diffstat (limited to 'runtime/lua')
0 files changed, 0 insertions, 0 deletions