diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-08 15:42:18 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-08 15:42:18 +0200 |
| commit | 315d0f118f3d5ec2578249182f7b0eebf99d2943 (patch) | |
| tree | f15e1e588cc1495ed3cacc0dfcf5befd88069116 /build.bat | |
| parent | f784a0218afc7eb39d1e0963d61f7ba7ecc14f1a (diff) | |
| download | nissy-core-315d0f118f3d5ec2578249182f7b0eebf99d2943.tar.gz nissy-core-315d0f118f3d5ec2578249182f7b0eebf99d2943.zip | |
Fixed build.bat
Diffstat (limited to '')
| -rw-r--r-- | build.bat | 22 |
1 files changed, 11 insertions, 11 deletions
| @@ -1,18 +1,18 @@ | |||
| 1 | SET CFLAGS=-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread -O3 -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -DTHREADS=16 -DPORTABLE | 1 | SET CFLAGS=-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread -O3 -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -DTHREADS=16 -DPORTABLE |
| 2 | 2 | ||
| 3 | # Build the core library and the shell. | 3 | :: Build the core library and the shell. |
| 4 | # Requires WinLibs - https://winlibs.com/ | 4 | :: Requires WinLibs - https://winlibs.com/ |
| 5 | 5 | ||
| 6 | gcc %CFLAGS% -c src/nissy.c | 6 | gcc %CFLAGS% -c src/nissy.c |
| 7 | gcc %CFLAGS% shell/shell.c -o run | 7 | gcc %CFLAGS% nissy.o shell/shell.c -o run |
| 8 | 8 | ||
| 9 | # Currently, building the Python module is not supported. | 9 | :: Currently, building the Python module is not supported. |
| 10 | # There are probably some issues related to using GCC + MINGW instead | 10 | :: There are probably some issues related to using GCC + MINGW instead |
| 11 | # of a more native Windows compiler. | 11 | :: of a more native Windows compiler. |
| 12 | 12 | ||
| 13 | # Python libraries - change to mathc your local installation | 13 | :: Python libraries - change to mathc your local installation |
| 14 | #SET PYPATH=%userprofile%\AppData\Local\Programs\Python\Python313 | 14 | ::SET PYPATH=%userprofile%\AppData\Local\Programs\Python\Python313 |
| 15 | #SET PYINCLUDE=%PYPATH%\include | 15 | ::SET PYINCLUDE=%PYPATH%\include |
| 16 | #SET PYDLL=%PYPATH%\python313.dll | 16 | ::SET PYDLL=%PYPATH%\python313.dll |
| 17 | 17 | ||
| 18 | #gcc %CFLAGS% -I%PYINCLUDE% -shared %PYDLL% python/nissy_module.c nissy.o -o nissy_python_module.pyd | 18 | ::gcc %CFLAGS% -I%PYINCLUDE% -shared %PYDLL% python/nissy_module.c nissy.o -o nissy_python_module.pyd |
