diff options
Diffstat (limited to 'build')
| -rwxr-xr-x | build | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -119,6 +119,7 @@ parsesanitize() { | |||
| 119 | 119 | ||
| 120 | # Build flags | 120 | # Build flags |
| 121 | CFLAGS="-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread" | 121 | CFLAGS="-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread" |
| 122 | PYCFLAGS="-std=c11 -fPIC -pthread" | ||
| 122 | [ "$ARCH" = "AVX2" ] && CFLAGS="$CFLAGS -mavx2" | 123 | [ "$ARCH" = "AVX2" ] && CFLAGS="$CFLAGS -mavx2" |
| 123 | WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" | 124 | WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" |
| 124 | OFLAGS="$OPTIMIZE" | 125 | OFLAGS="$OPTIMIZE" |
| @@ -261,7 +262,7 @@ build_python() { | |||
| 261 | exit 1 | 262 | exit 1 |
| 262 | fi | 263 | fi |
| 263 | build_nissy || exit 1 | 264 | build_nissy || exit 1 |
| 264 | run $CC $CFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ | 265 | run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ |
| 265 | -o nissy_python_module.so nissy.o python/nissy_module.c | 266 | -o nissy_python_module.so nissy.o python/nissy_module.c |
| 266 | } | 267 | } |
| 267 | 268 | ||
