Skip to content

Instantly share code, notes, and snippets.

@ThePerfectComputer
Created March 20, 2024 03:21
Show Gist options
  • Save ThePerfectComputer/0f5d5d5516cd523b69dc7a9c4fa06cb3 to your computer and use it in GitHub Desktop.
Save ThePerfectComputer/0f5d5d5516cd523b69dc7a9c4fa06cb3 to your computer and use it in GitHub Desktop.
Bluespec Haskell Linking with Tcl
set -ex
BLUESPECDIR=`echo 'puts $env(BLUESPECDIR)' | bluetcl`
INCLUDES=$(find $BLUESPECDIR/../../src/comp -type d -exec echo -n '-i{} ' \;)
ghci $INCLUDES \
-ltcl -L$BLUESPECDIR/../../src/vendor/htcl -lhtcl \
-i$BLUESPECDIR/../../src/vendor/htcl \
-fobject-code \
-package mtl \
-package syb \
-package split
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment