diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 11 |
1 files changed, 8 insertions, 3 deletions
| @@ -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 | ||
