aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-07-11 15:18:16 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-07-11 15:18:16 +0200
commit4abb81c230bfcd599ccceb2b1bcbdcadbd859537 (patch)
tree41dd1cf04d0ff34022fa7669c0b00cd2f051f7d9 /tools
parent275d8c66d2aa4793d986bcc7939cb4adcd64e018 (diff)
downloadnissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.tar.gz
nissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.zip
Cleanup makefile and tools
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tool.sh14
-rw-r--r--tools/stats_tables_h48/stats_tables_h48.c2
2 files changed, 2 insertions, 14 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
6fi 6fi
7 7
8CC="cc -std=c99 -pedantic -Wall -Wextra \ 8CC="$CC -D_POSIX_C_SOURCE=199309L"
9 -Wno-unused-parameter -Wno-unused-function -D$CUBETYPE \
10 -D_POSIX_C_SOURCE=199309L"
11
12if [ -n "$DEBUG" ]; then
13 CC="$CC -fsanitize=address -g3"
14 CUBEOBJ="debugcube.o"
15else
16 CC="$CC -O3"
17 CUBEOBJ="cube.o"
18fi
19
20[ "$CUBETYPE" = "CUBE_AVX2" ] && CC="$CC -mavx2"
21 9
22BIN="tools/run" 10BIN="tools/run"
23d="$(date +'%Y-%m-%d-%H-%M-%S')" 11d="$(date +'%Y-%m-%d-%H-%M-%S')"
diff --git a/tools/stats_tables_h48/stats_tables_h48.c b/tools/stats_tables_h48/stats_tables_h48.c
index fc8c981..7c6bc3c 100644
--- a/tools/stats_tables_h48/stats_tables_h48.c
+++ b/tools/stats_tables_h48/stats_tables_h48.c
@@ -127,7 +127,7 @@ int getdata(int64_t size) {
127 return 0; 127 return 0;
128} 128}
129 129
130int main() { 130int main(void) {
131 int64_t size; 131 int64_t size;
132 132
133 srand(time(NULL)); 133 srand(time(NULL));

Generated with cgit - Back to sebastiano.tronto.net