aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
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