Skip to content

Commit

Permalink
fix windows comp for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawSumma committed May 5, 2024
1 parent aa19221 commit 67dcd28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- run: make CC=cc OPT='-Os -fomit-frame-pointer -flto' GCCJIT=NO
- run: make -Bj CC=cc OPT='-Os -flto' GCCJIT=NO
- uses: actions/upload-artifact@v3
with:
name: minivm-linux
Expand All @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- run: make EXE=.exe CC='gcc' OPT='-Os -fomit-frame-pointer -flto' CFLAGS='-D__chkstk=vm_hack_chkstk -Icuik/c11threads -include pthread.h' EXTRA_SRCS='cuik/c11threads/threads_posix.c' LDFLAGS='-lpthread' GCCJIT=NO
- run: make -Bj EXE=.exe CC='gcc' OPT='-Os -flto' OS_NAME=WINDOWS GCCJIT=NO
- uses: actions/upload-artifact@v3
with:
name: minivm-windows
Expand Down
2 changes: 1 addition & 1 deletion vm/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ void *end;
#endif

#if defined(_WIN32)
void vm_hack_chkstk(void) {}
void __chkstk(void) {}
#endif

0 comments on commit 67dcd28

Please sign in to comment.