aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-14 13:32:19 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-14 13:32:19 +0200
commitc835bf15da3ce39b856222d352c800f6ebd51acf (patch)
tree22f44fb6e766d9758a72182cef1dca7131e7a3a7 /build.sh
parent325778cb5f4b169ef7e197e179cfb889808d10c2 (diff)
downloadnissy-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-xbuild.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 7cd38e3..b5daf53 100755
--- a/build.sh
+++ b/build.sh
@@ -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

Generated with cgit - Back to sebastiano.tronto.net