diff options
Diffstat (limited to '')
| -rwxr-xr-x | build | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -265,8 +265,12 @@ build_python() { | |||
| 265 | echo "Cannot build python module" | 265 | echo "Cannot build python module" |
| 266 | exit 1 | 266 | exit 1 |
| 267 | fi | 267 | fi |
| 268 | if [ "$debug" = "yes" ]; then | ||
| 269 | echo "Cannot build Python library in debug mode" | ||
| 270 | exit 1 | ||
| 271 | fi | ||
| 268 | build_nissy || exit 1 | 272 | build_nissy || exit 1 |
| 269 | run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ | 273 | run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $OFLAGS -shared \ |
| 270 | -o nissy_python_module.so nissy.o python/nissy_module.c | 274 | -o nissy_python_module.so nissy.o python/nissy_module.c |
| 271 | } | 275 | } |
| 272 | 276 | ||
| @@ -278,7 +282,7 @@ build_cpp() { | |||
| 278 | fi | 282 | fi |
| 279 | 283 | ||
| 280 | build_nissy || exit 1 | 284 | build_nissy || exit 1 |
| 281 | run $CXX -std=c++20 -o runcpp cpp/nissy.cpp nissy.o $@ | 285 | run $CXX $(odflags) -std=c++20 -o runcpp cpp/nissy.cpp nissy.o $@ |
| 282 | run ./runcpp | 286 | run ./runcpp |
| 283 | } | 287 | } |
| 284 | 288 | ||
