Skip to content

Commit

Permalink
Statically link SBCL
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-s committed May 12, 2024
1 parent 0a7c77a commit 2268a0d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ jobs:
run: |
PATH=$PATH:"/c/Program Files/Steel Bank Common Lisp/1.4.14"
export PATH
./make.sh --xc-host='sbcl --lose-on-corruption --disable-ldb --disable-debugger'
./make-shared-library.sh
mv src/runtime/libsbcl.so src/runtime/libsbcl.dll
./make.sh --xc-host='sbcl --lose-on-corruption --disable-ldb --disable-debugger' --with-sb-linkable-runtime
- name: install quicklisp
working-directory: ../sbcl
run: |
Expand All @@ -53,6 +51,6 @@ jobs:
pwd
$SBCL_SRC/run-sbcl.sh --script script.lisp
echo $LIBRARY_PATH
gcc -Wall -fPIC -shared -o libcalc.dll libcalc.c -lsbcl
gcc -Wall -o example example.c -lsbcl -lcalc
echo "(+ 1 2)" | ./example
gcc -Wall -fPIC -shared -o libcalc.dll libcalc.c -Wl,--whole-archive -lsbcl -Wl,--no-whole-archive -ladvapi32 -lsynchronization -lws2_32 -lzstd
gcc -Wall -o example example.c -lcalc
echo "(+ 1 2)" | ./example.exe

0 comments on commit 2268a0d

Please sign in to comment.