diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-11 14:19:58 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-11 14:19:58 +0200 |
| commit | 37dc364aaf751a14ff8c7e74e6bae59128c558df (patch) | |
| tree | 077127a7ef09e5c45a51f7f3ab9d048fd19db6d4 | |
| parent | 2048e5a99de981a53d5eeb8a66d98e281898c9f0 (diff) | |
| download | nissy-core-37dc364aaf751a14ff8c7e74e6bae59128c558df.tar.gz nissy-core-37dc364aaf751a14ff8c7e74e6bae59128c558df.zip | |
Avoid warning on constant redefinition for python module
| -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 | ||
