diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-08 16:18:14 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-08 16:18:14 +0100 |
| commit | e082001f7c7c8ce0d20aebad4e6d6f22d3bf854c (patch) | |
| tree | 7a8b9875d067feb6c96f39be4080397f8f1eef2d /configure.sh | |
| parent | 72c9082c9824c7ffecc97a94083aa350956285e4 (diff) | |
| download | nissy-core-e082001f7c7c8ce0d20aebad4e6d6f22d3bf854c.tar.gz nissy-core-e082001f7c7c8ce0d20aebad4e6d6f22d3bf854c.zip | |
Moved documentation around, improved configure.sh
Diffstat (limited to 'configure.sh')
| -rwxr-xr-x | configure.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.sh b/configure.sh index 44774cd..9a790ca 100755 --- a/configure.sh +++ b/configure.sh | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | cc -mavx2 utils/detect-immintrin.c && detected="AVX2" && rm a.out | ||
| 4 | TYPE=${TYPE-"$detected"} | ||
| 5 | |||
| 3 | STD="-std=c99" | 6 | STD="-std=c99" |
| 4 | WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" | 7 | WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" |
| 5 | [ "$TYPE" = "AVX2" ] && AVX="-mavx2" | 8 | [ "$TYPE" = "AVX2" ] && AVX="-mavx2" |
