Skip to content

Commit

Permalink
???
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-s committed Jun 20, 2024
1 parent 1348523 commit c00fcf0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
env:
SBCL_SRC: ${{ github.workspace }}/../sbcl
CL_SOURCE_REGISTRY: "${{ github.workspace }}//"
MSYS2_PATH_TYPE: inherit
run: |
$SBCL_SRC/run-sbcl.sh --script script.lisp
gcc -Wall -fPIC -shared -Wl,--export-all-symbols -o libcalc.dll libcalc.c -Wl,--whole-archive $SBCL_SRC/src/runtime/libsbcl.a -Wl,--no-whole-archive -ladvapi32 -lsynchronization -lws2_32 -lzstd
gcc -Wall -o example example.c -lcalc -L.
echo "(+ 1 2)" | ./example.exe
echo $PATH
python --version
echo "(+ 1 2)" | PATH=$PATH:. python ./example.py
python ./exhaust_heap.py
3 changes: 0 additions & 3 deletions examples/libcalc/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import os
import sys

print(os.environ['PATH'].split(os.pathsep))

import py_over_so
py_over_so.override_module("libcalc")
import os
Expand All @@ -12,7 +10,6 @@ def test(x):
print(x)
return old(x)
os.path.isfile = test
os.add_dll_directory(os.getcwd())
import libcalc

def die(msg):
Expand Down

0 comments on commit c00fcf0

Please sign in to comment.