aboutsummaryrefslogtreecommitdiff
path: root/configure.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-11-19 11:55:23 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-11-19 11:55:23 +0100
commitbb5abea645a31832e9d6a94cea09714a9b1632e3 (patch)
treefbad437281bb330287f4f4275a783a81512bac40 /configure.sh
parent8059d63339b49d37af894f861956de4b89429bee (diff)
downloadnissy-core-bb5abea645a31832e9d6a94cea09714a9b1632e3.tar.gz
nissy-core-bb5abea645a31832e9d6a94cea09714a9b1632e3.zip
Fixed bug in tests with different architectures
Diffstat (limited to 'configure.sh')
-rwxr-xr-xconfigure.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.sh b/configure.sh
index e4a142d..fdebf27 100755
--- a/configure.sh
+++ b/configure.sh
@@ -7,12 +7,9 @@ detectsan() { cc -fsanitize=$1 -dM -E -x c - </dev/null | grep "SANITIZE"; }
7 7
8TYPE=${TYPE-"$detected"} 8TYPE=${TYPE-"$detected"}
9 9
10echo "Using CUBE_$TYPE"
11
12STD="-std=c99" 10STD="-std=c99"
13WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" 11WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function"
14[ "$TYPE" = "AVX2" ] && AVX="-mavx2" 12[ "$TYPE" = "AVX2" ] && AVX="-mavx2"
15
16[ -n "$(detectsan address)" ] && ADDR="-fsanitize=address" 13[ -n "$(detectsan address)" ] && ADDR="-fsanitize=address"
17[ -n "$(detectsan undefined)" ] && UNDEF="-fsanitize=undefined" 14[ -n "$(detectsan undefined)" ] && UNDEF="-fsanitize=undefined"
18SAN="$ADDR $UNDEF" 15SAN="$ADDR $UNDEF"
@@ -20,11 +17,14 @@ SAN="$ADDR $UNDEF"
20CFLAGS="$STD $WFLAGS $AVX -O3" 17CFLAGS="$STD $WFLAGS $AVX -O3"
21DBGFLAGS="$STD $WFLAGS $AVX -g3 -DDEBUG" 18DBGFLAGS="$STD $WFLAGS $AVX -g3 -DDEBUG"
22 19
20echo "Cube type: CUBE_$TYPE"
21echo "Compiler: ${CC:-cc}"
22
23{ 23{
24echo "CUBETYPE = CUBE_$TYPE"; 24echo "CUBETYPE = CUBE_$TYPE";
25echo ""; 25echo "";
26echo "CFLAGS = $CFLAGS"; 26echo "CFLAGS = $CFLAGS";
27echo "DBGFLAGS = $DBGFLAGS"; 27echo "DBGFLAGS = $DBGFLAGS";
28echo ""; 28echo "";
29echo "CC = cc" 29echo "CC = ${CC:-cc}"
30} > config.mk 30} > config.mk

Generated with cgit - Back to sebastiano.tronto.net