commit fb3875d3ae14bca4ab9869ca340df2ee63673400 parent a36edab98434100422550d7271e54a723350ee38 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Mon, 21 Jul 2025 09:40:22 +0200 Fix debug c++ build; disable debug python build Diffstat:
M | build | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git 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 }