aboutsummaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-08 15:32:38 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-08 15:32:38 +0200
commitf784a0218afc7eb39d1e0963d61f7ba7ecc14f1a (patch)
treea00e10fa25298ccb0ac5963934ef481853e553f0 /build.bat
parent9c5c7af7abe9e444210ac86b903eee775fc76a84 (diff)
downloadnissy-core-f784a0218afc7eb39d1e0963d61f7ba7ecc14f1a.tar.gz
nissy-core-f784a0218afc7eb39d1e0963d61f7ba7ecc14f1a.zip
Initial commit for build.bat
Diffstat (limited to '')
-rw-r--r--build.bat18
1 files changed, 18 insertions, 0 deletions
diff --git a/build.bat b/build.bat
new file mode 100644
index 0000000..b807535
--- /dev/null
+++ b/build.bat
@@ -0,0 +1,18 @@
1SET CFLAGS=-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread -O3 -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -DTHREADS=16 -DPORTABLE
2
3# Build the core library and the shell.
4# Requires WinLibs - https://winlibs.com/
5
6gcc %CFLAGS% -c src/nissy.c
7gcc %CFLAGS% shell/shell.c -o run
8
9# Currently, building the Python module is not supported.
10# There are probably some issues related to using GCC + MINGW instead
11# of a more native Windows compiler.
12
13# Python libraries - change to mathc your local installation
14#SET PYPATH=%userprofile%\AppData\Local\Programs\Python\Python313
15#SET PYINCLUDE=%PYPATH%\include
16#SET PYDLL=%PYPATH%\python313.dll
17
18#gcc %CFLAGS% -I%PYINCLUDE% -shared %PYDLL% python/nissy_module.c nissy.o -o nissy_python_module.pyd

Generated with cgit - Back to sebastiano.tronto.net