aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-11 14:19:58 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-11 14:19:58 +0200
commit37dc364aaf751a14ff8c7e74e6bae59128c558df (patch)
tree077127a7ef09e5c45a51f7f3ab9d048fd19db6d4
parent2048e5a99de981a53d5eeb8a66d98e281898c9f0 (diff)
downloadnissy-core-37dc364aaf751a14ff8c7e74e6bae59128c558df.tar.gz
nissy-core-37dc364aaf751a14ff8c7e74e6bae59128c558df.zip
Avoid warning on constant redefinition for python module
Diffstat (limited to '')
-rwxr-xr-xbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/build b/build
index 6ece431..0a968db 100755
--- a/build
+++ b/build
@@ -119,6 +119,7 @@ parsesanitize() {
119 119
120# Build flags 120# Build flags
121CFLAGS="-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread" 121CFLAGS="-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread"
122PYCFLAGS="-std=c11 -fPIC -pthread"
122[ "$ARCH" = "AVX2" ] && CFLAGS="$CFLAGS -mavx2" 123[ "$ARCH" = "AVX2" ] && CFLAGS="$CFLAGS -mavx2"
123WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" 124WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function"
124OFLAGS="$OPTIMIZE" 125OFLAGS="$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

Generated with cgit - Back to sebastiano.tronto.net