From 9c1659d91a331735f88c127aa236a59153e23dfc Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 4 Nov 2023 22:07:15 +0100 Subject: Reverted some Makefile changes, cleanup --- configure.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'configure.sh') diff --git a/configure.sh b/configure.sh index 17673fc..74df81e 100755 --- a/configure.sh +++ b/configure.sh @@ -1,12 +1,12 @@ #!/bin/sh -CFLAGS="-std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -O3" -DBGFLAGS="-DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -g3 -fsanitize=address -fsanitize=undefined" +STD="-std=c99" +WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter" +[ "$TYPE" = "AVX2" ] && AVX="-mavx2" +[ "$(uname)" = "Linux" ] && SAN="-fsanitize=address -fsanitize=undefined" -if [ "$TYPE" = "AVX2" ]; then - CFLAGS="$CFLAGS -mavx2" - DBGFLAGS="$DBGFLAGS -mavx2" -fi +CFLAGS="$STD $WFLAGS $AVX -O3" +DBGFLAGS="$STD $WFLAGS $AVX -g3 -DDEBUG" { echo "CUBETYPE = CUBE_$TYPE"; -- cgit v1.3