fmj/build.sh
2025-10-26 01:12:27 -05:00

9 lines
391 B
Bash
Executable File

#!/bin/sh
# works on my system and is a reference for yours
zig 0.15.1 cc -std=c99 -pedantic -Wall -Wextra -Os fmj.c -o fmj
# this is anyzig, which will run an arbitrary version of the zig compiler, downloading it if necessary.
# zig ships many versions of libc and wraps clang, so its convenient for me
# tl;dr you can replace `zig 0.15.1 cc` with something like `clang` or `gcc` or `cc`