Skip to content

Commit 6cda938

Browse files
Improved the readability of the build scripts
1 parent 5ce307e commit 6cda938

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build-linux.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
2+
# 32-bit
23
gcc -O0 -m32 -pthread *.c -o simplebench32-linux -lm &&
34
chmod +x simplebench32-linux &&
5+
# 64-bit
46
gcc -O0 -pthread *.c -o simplebench-linux -lm &&
57
chmod +x simplebench-linux &&
8+
69
echo "Done!"

build-windows.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
2+
# 32-bit
3+
i686-w64-mingw32-gcc -O0 *.c -o simplebench32-windows.exe &&
4+
# 64-bit
25
x86_64-w64-mingw32-gcc -O0 *.c -o simplebench-windows.exe &&
3-
i686-w64-mingw32-gcc -O0 *.c -o simplebench32-windows.exe
6+
7+
echo "Done!"

0 commit comments

Comments
 (0)