diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-14 13:32:19 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-14 13:32:19 +0200 |
| commit | c835bf15da3ce39b856222d352c800f6ebd51acf (patch) | |
| tree | 22f44fb6e766d9758a72182cef1dca7131e7a3a7 /build.sh | |
| parent | 325778cb5f4b169ef7e197e179cfb889808d10c2 (diff) | |
| download | nissy-core-c835bf15da3ce39b856222d352c800f6ebd51acf.tar.gz nissy-core-c835bf15da3ce39b856222d352c800f6ebd51acf.zip | |
Added attempt to make pause / resume work with python module
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 11 |
1 files changed, 8 insertions, 3 deletions
| @@ -275,12 +275,17 @@ build_python() { | |||
| 275 | echo "Cannot build python module" | 275 | echo "Cannot build python module" |
| 276 | exit 1 | 276 | exit 1 |
| 277 | fi | 277 | fi |
| 278 | # There are some name conflicts between the python module and | ||
| 279 | # the internals of nissy, which are visible in debug mode. | ||
| 280 | # There are also some problems with sanitizers. | ||
| 278 | if [ "$debug" = "yes" ]; then | 281 | if [ "$debug" = "yes" ]; then |
| 279 | echo "Cannot build Python library in debug mode" | 282 | printf "Building Python module in debug mode, " |
| 280 | exit 1 | 283 | printf "but nissy in release mode.\n" |
| 284 | pydflags="-g3" | ||
| 285 | debug="no" | ||
| 281 | fi | 286 | fi |
| 282 | build_nissy || exit 1 | 287 | build_nissy || exit 1 |
| 283 | run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $OFLAGS -shared \ | 288 | run $CC $pydflags $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES -shared \ |
| 284 | -o python/nissy.so nissy.o python/nissy_module.c | 289 | -o python/nissy.so nissy.o python/nissy_module.c |
| 285 | } | 290 | } |
| 286 | 291 | ||
