aboutsummaryrefslogtreecommitdiff
path: root/configure.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configure.sh')
-rwxr-xr-xconfigure.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.sh b/configure.sh
index 17673fc..74df81e 100755
--- a/configure.sh
+++ b/configure.sh
@@ -1,12 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3CFLAGS="-std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -O3" 3STD="-std=c99"
4DBGFLAGS="-DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -g3 -fsanitize=address -fsanitize=undefined" 4WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter"
5[ "$TYPE" = "AVX2" ] && AVX="-mavx2"
6[ "$(uname)" = "Linux" ] && SAN="-fsanitize=address -fsanitize=undefined"
5 7
6if [ "$TYPE" = "AVX2" ]; then 8CFLAGS="$STD $WFLAGS $AVX -O3"
7 CFLAGS="$CFLAGS -mavx2" 9DBGFLAGS="$STD $WFLAGS $AVX -g3 -DDEBUG"
8 DBGFLAGS="$DBGFLAGS -mavx2"
9fi
10 10
11{ 11{
12echo "CUBETYPE = CUBE_$TYPE"; 12echo "CUBETYPE = CUBE_$TYPE";

Generated with cgit - Back to sebastiano.tronto.net