From c835bf15da3ce39b856222d352c800f6ebd51acf Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 14 Aug 2025 13:32:19 +0200 Subject: Added attempt to make pause / resume work with python module --- build.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 7cd38e3..b5daf53 100755 --- a/build.sh +++ b/build.sh @@ -275,12 +275,17 @@ build_python() { echo "Cannot build python module" exit 1 fi + # There are some name conflicts between the python module and + # the internals of nissy, which are visible in debug mode. + # There are also some problems with sanitizers. if [ "$debug" = "yes" ]; then - echo "Cannot build Python library in debug mode" - exit 1 + printf "Building Python module in debug mode, " + printf "but nissy in release mode.\n" + pydflags="-g3" + debug="no" fi build_nissy || exit 1 - run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $OFLAGS -shared \ + run $CC $pydflags $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES -shared \ -o python/nissy.so nissy.o python/nissy_module.c } -- cgit v1.3