diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-11 15:18:16 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-11 15:18:16 +0200 |
| commit | 4abb81c230bfcd599ccceb2b1bcbdcadbd859537 (patch) | |
| tree | 41dd1cf04d0ff34022fa7669c0b00cd2f051f7d9 /tools/run_tool.sh | |
| parent | 275d8c66d2aa4793d986bcc7939cb4adcd64e018 (diff) | |
| download | nissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.tar.gz nissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.zip | |
Cleanup makefile and tools
Diffstat (limited to 'tools/run_tool.sh')
| -rwxr-xr-x | tools/run_tool.sh | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tools/run_tool.sh b/tools/run_tool.sh index 14d0e45..495d68c 100755 --- a/tools/run_tool.sh +++ b/tools/run_tool.sh | |||
| @@ -5,19 +5,7 @@ if [ -z "$TOOL" ]; then | |||
| 5 | exit 1 | 5 | exit 1 |
| 6 | fi | 6 | fi |
| 7 | 7 | ||
| 8 | CC="cc -std=c99 -pedantic -Wall -Wextra \ | 8 | CC="$CC -D_POSIX_C_SOURCE=199309L" |
| 9 | -Wno-unused-parameter -Wno-unused-function -D$CUBETYPE \ | ||
| 10 | -D_POSIX_C_SOURCE=199309L" | ||
| 11 | |||
| 12 | if [ -n "$DEBUG" ]; then | ||
| 13 | CC="$CC -fsanitize=address -g3" | ||
| 14 | CUBEOBJ="debugcube.o" | ||
| 15 | else | ||
| 16 | CC="$CC -O3" | ||
| 17 | CUBEOBJ="cube.o" | ||
| 18 | fi | ||
| 19 | |||
| 20 | [ "$CUBETYPE" = "CUBE_AVX2" ] && CC="$CC -mavx2" | ||
| 21 | 9 | ||
| 22 | BIN="tools/run" | 10 | BIN="tools/run" |
| 23 | d="$(date +'%Y-%m-%d-%H-%M-%S')" | 11 | d="$(date +'%Y-%m-%d-%H-%M-%S')" |
