nissy-core

The "engine" of nissy, including the H48 optimal solver.
git clone https://git.tronto.net/nissy-core
Download | Log | Files | Refs | README | LICENSE

commit 37dc364aaf751a14ff8c7e74e6bae59128c558df
parent 2048e5a99de981a53d5eeb8a66d98e281898c9f0
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Fri, 11 Jul 2025 14:19:58 +0200

Avoid warning on constant redefinition for python module

Diffstat:
Mbuild | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build b/build @@ -119,6 +119,7 @@ parsesanitize() { # Build flags CFLAGS="-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread" +PYCFLAGS="-std=c11 -fPIC -pthread" [ "$ARCH" = "AVX2" ] && CFLAGS="$CFLAGS -mavx2" WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" OFLAGS="$OPTIMIZE" @@ -261,7 +262,7 @@ build_python() { exit 1 fi build_nissy || exit 1 - run $CC $CFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ + run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ -o nissy_python_module.so nissy.o python/nissy_module.c }