diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 18:22:07 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 18:22:07 -0400 |
| commit | 5846f9dd9c80cc1db52984323d445874c69fb766 (patch) | |
| tree | ad1f3f9fc08be89af931bd96f44c8f74fc7f8832 /local-tomo | |
| parent | 6d68174bdd5bcd1a7e1a6161b578cd39eaf03bef (diff) | |
Change compilation configuration so Tomo is fully capable of running
locally from the build directory, including with TCC.
Diffstat (limited to 'local-tomo')
| -rwxr-xr-x | local-tomo | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/local-tomo b/local-tomo new file mode 100755 index 00000000..f6548058 --- /dev/null +++ b/local-tomo @@ -0,0 +1,12 @@ +#!/bin/sh +here="$(realpath "$(dirname "$0")")" +if [ ! -e "$here/build/bin/tomo" ]; then + echo "Tomo hasn't been compiled yet! Run \`make\` to compile it!" + exit 1; +fi + +PATH="$here/build/bin:$PATH" \ +LD_LIBRARY_PATH="$here/build/lib:$LD_LIBRARY_PATH" \ +LIBRARY_PATH="$here/build/lib:$LIBRARY_PATH" \ +C_INCLUDE_PATH="$here/build/include:$C_INCLUDE_PATH" \ +tomo "$@" |
