From fb3875d3ae14bca4ab9869ca340df2ee63673400 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 21 Jul 2025 09:40:22 +0200 Subject: Fix debug c++ build; disable debug python build --- build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build b/build index 47f62e4..98f227e 100755 --- a/build +++ b/build @@ -265,8 +265,12 @@ build_python() { echo "Cannot build python module" exit 1 fi + if [ "$debug" = "yes" ]; then + echo "Cannot build Python library in debug mode" + exit 1 + fi build_nissy || exit 1 - run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ + run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $OFLAGS -shared \ -o nissy_python_module.so nissy.o python/nissy_module.c } @@ -278,7 +282,7 @@ build_cpp() { fi build_nissy || exit 1 - run $CXX -std=c++20 -o runcpp cpp/nissy.cpp nissy.o $@ + run $CXX $(odflags) -std=c++20 -o runcpp cpp/nissy.cpp nissy.o $@ run ./runcpp } -- cgit v1.3