commit f784a0218afc7eb39d1e0963d61f7ba7ecc14f1a parent 9c5c7af7abe9e444210ac86b903eee775fc76a84 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Fri, 8 Aug 2025 15:32:38 +0200 Initial commit for build.bat Diffstat:
A | build.bat | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/build.bat b/build.bat @@ -0,0 +1,18 @@ +SET CFLAGS=-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread -O3 -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -DTHREADS=16 -DPORTABLE + +# Build the core library and the shell. +# Requires WinLibs - https://winlibs.com/ + +gcc %CFLAGS% -c src/nissy.c +gcc %CFLAGS% shell/shell.c -o run + +# Currently, building the Python module is not supported. +# There are probably some issues related to using GCC + MINGW instead +# of a more native Windows compiler. + +# Python libraries - change to mathc your local installation +#SET PYPATH=%userprofile%\AppData\Local\Programs\Python\Python313 +#SET PYINCLUDE=%PYPATH%\include +#SET PYDLL=%PYPATH%\python313.dll + +#gcc %CFLAGS% -I%PYINCLUDE% -shared %PYDLL% python/nissy_module.c nissy.o -o nissy_python_module.pyd