collin/anvil · d894a14f
fix: raise fd soft limit in deploy build script
Collin Richards · 2026-06-09 22:23 UTC · d894a14ffce95a00a7ec141a4f1a6bca800ff7b1 · parent 5997c273 · browse files
modifieddeploy/build.sh+5 −0
| ⋯ 17 unchanged lines | |||
| 18 | 18 | ||
| 19 | 19 | cd "$(dirname "$0")/.." | |
| 20 | 20 | ||
| 21 | + | # macOS terminals default to a 256 open-file soft limit; zig's linker opens | |
| 22 | + | # every rlib at once and dies with ProcessFdQuotaExceeded. Raise it for this | |
| 23 | + | # process (children inherit it). | |
| 24 | + | ulimit -n 4096 2>/dev/null || true | |
| 25 | + | ||
| 21 | 26 | echo "==> cross-compiling anvild for $TARGET (native, via zig)" | |
| 22 | 27 | cargo zigbuild --release --target "$TARGET" --bin anvild | |
| 23 | 28 | ||
| ⋯ 11 unchanged lines | |||