aboutsummaryrefslogtreecommitdiff
path: root/configure.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-28 20:42:24 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-28 20:42:24 +0200
commitb05fa355c49c619cce1226716a395381a944f578 (patch)
treeb46416e2fbbc70f3d780f4e0ea3de7763115efe0 /configure.sh
parentfabb1ae495c4404af0f26380c97d0bca7e881a27 (diff)
downloadnissy-core-b05fa355c49c619cce1226716a395381a944f578.tar.gz
nissy-core-b05fa355c49c619cce1226716a395381a944f578.zip
Started working on AVX2 (not working yet)
Diffstat (limited to 'configure.sh')
-rwxr-xr-xconfigure.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.sh b/configure.sh
new file mode 100755
index 0000000..17673fc
--- /dev/null
+++ b/configure.sh
@@ -0,0 +1,18 @@
1#!/bin/sh
2
3CFLAGS="-std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -O3"
4DBGFLAGS="-DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -g3 -fsanitize=address -fsanitize=undefined"
5
6if [ "$TYPE" = "AVX2" ]; then
7 CFLAGS="$CFLAGS -mavx2"
8 DBGFLAGS="$DBGFLAGS -mavx2"
9fi
10
11{
12echo "CUBETYPE = CUBE_$TYPE";
13echo "";
14echo "CFLAGS = $CFLAGS";
15echo "DBGFLAGS = $DBGFLAGS";
16echo "";
17echo "CC = cc"
18} > config.mk

Generated with cgit - Back to sebastiano.tronto.net