diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-28 20:42:24 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-28 20:42:24 +0200 |
| commit | b05fa355c49c619cce1226716a395381a944f578 (patch) | |
| tree | b46416e2fbbc70f3d780f4e0ea3de7763115efe0 /configure.sh | |
| parent | fabb1ae495c4404af0f26380c97d0bca7e881a27 (diff) | |
| download | nissy-core-b05fa355c49c619cce1226716a395381a944f578.tar.gz nissy-core-b05fa355c49c619cce1226716a395381a944f578.zip | |
Started working on AVX2 (not working yet)
Diffstat (limited to 'configure.sh')
| -rwxr-xr-x | configure.sh | 18 |
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 | |||
| 3 | CFLAGS="-std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -O3" | ||
| 4 | DBGFLAGS="-DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -g3 -fsanitize=address -fsanitize=undefined" | ||
| 5 | |||
| 6 | if [ "$TYPE" = "AVX2" ]; then | ||
| 7 | CFLAGS="$CFLAGS -mavx2" | ||
| 8 | DBGFLAGS="$DBGFLAGS -mavx2" | ||
| 9 | fi | ||
| 10 | |||
| 11 | { | ||
| 12 | echo "CUBETYPE = CUBE_$TYPE"; | ||
| 13 | echo ""; | ||
| 14 | echo "CFLAGS = $CFLAGS"; | ||
| 15 | echo "DBGFLAGS = $DBGFLAGS"; | ||
| 16 | echo ""; | ||
| 17 | echo "CC = cc" | ||
| 18 | } > config.mk | ||
