From 8ed31461b4b1f357a0d8cefda0b3bcceffb7c93d Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 15 Jun 2026 09:26:51 +0300 Subject: add simple compiler wrapper --- fwdc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 fwdc diff --git a/fwdc b/fwdc new file mode 100755 index 0000000..96cfe04 --- /dev/null +++ b/fwdc @@ -0,0 +1,20 @@ +#!/bin/sh +# helper script for compiling a fwd program. +# assumes it is being run from the root dir of the fwd sources. + +if [ "$#" -ne 2 ]; then + echo "usage: fwdc " + echo "currently also produces .c for inspection" + exit 1 +fi + +SRC="$1" +DST="$2" + +./fwd "$SRC" > "$DST".c + +cc -O3 -mno-sse \ + -L mod -I include -I lib \ + -Wl,-rpath=$PWD/mod \ + "$DST".c -o "$DST" \ + -lfwdio -lfwdmem -lfwdutil -- cgit v1.3