Repository navigation
Commit 4dd58fb
committed
fix(build): link libc to cljw / cache_gen / test module
The Zig 0.16.0 migration switched several runtime helpers
(runtime/lifecycle, lang/builtins/system, lang/interop/classes/file,
engine/vm/jit, runtime/io_default) to call std.c.{getcwd, getenv,
realpath, write, mprotect} directly because the corresponding
std.posix.* surface was removed. build.zig was never updated to
link libc explicitly, so the references resolved only on macOS
native targets where libc is auto-linked. Linux native builds and
all *-macos-none / *-linux-gnu cross-compile targets failed with
"dependency on libc must be explicitly specified" (cache_gen
ReleaseSafe + zig build test on Linux + every cross-compile job).
Set link_libc = true on the test module, the cache_gen module, and
the cljw exe module to match the post-migration source-level
dependency. F146 still tracks the eventual removal once std.c
usages get pure-Zig equivalents.1 parent 6faadc5 commit 4dd58fb
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
| |||
0 commit comments