HL/C on macOS

This commit is contained in:
Josh Tynjala
2023-10-19 15:00:27 -07:00
parent 75bc87102b
commit f0ecccf5eb
2 changed files with 57 additions and 16 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env sh
# HashLink needs a specific working directory to find hlboot.dat and libraries
cd "$(dirname "$0")"
exec ./hl "$@"
# automatically, so we use this script to configure them all manually
BASEDIR=$(dirname $0)
DYLD_LIBRARY_PATH=$BASEDIR:$DYLD_LIBRARY_PATH exec $BASEDIR/hl $BASEDIR/hlboot.dat "$@"