Files
lime/templates/hl/mac-launch.sh
Josh Tynjala f0ecccf5eb HL/C on macOS
2023-10-19 15:00:27 -07:00

5 lines
276 B
Bash

#!/usr/bin/env sh
# HashLink needs a specific working directory to find hlboot.dat and libraries
# 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 "$@"