mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
src/embedded.fch (made by tools/pack.fch, checked by tests/run.sh) holds runtime/finch_rt.c and std/; when they aren't beside the binary they're written to the cache folder once. All the sh/cmd specifics of the driver (quoting, temp dir, mkdir, rm, mv, null device, path separator, cache dir, binary stdio) moved into host.fch / host_windows.fch. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015f73FesGZGYPkmDvUcj6QX
6 lines
331 B
Shell
Executable file
6 lines
331 B
Shell
Executable file
#!/bin/sh
|
|
# Writes src/embedded.fch: the runtime and the standard library as text, so the compiler can carry them inside itself.
|
|
# bootstrap/pack.sh <a Finch compiler> [out.fch]
|
|
set -eu
|
|
cd "$(dirname "$0")/.."
|
|
FINCH_RT=$PWD/runtime/finch_rt.c "$1" run tools/pack.fch "${2:-src/embedded.fch}" runtime/finch_rt.c std/*.fch std/*.h
|