diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index f33e00d4..04db0249 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -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 @@ -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 diff --git a/vm/lib.c b/vm/lib.c index 2524f056..97c21cd9 100644 --- a/vm/lib.c +++ b/vm/lib.c @@ -6,5 +6,5 @@ void *end; #endif #if defined(_WIN32) -void vm_hack_chkstk(void) {} +void __chkstk(void) {} #endif