diff options
| author | Devine Lu Linvega <aliceffekt@gmail.com> | 2020-09-14 09:39:15 -0700 |
|---|---|---|
| committer | Devine Lu Linvega <aliceffekt@gmail.com> | 2020-09-14 09:39:15 -0700 |
| commit | adfb65521dfe51d70f0c3033afef76ec1c66880e (patch) | |
| tree | 561b8bbe47aeb239a169c16c6f644c2f7e5558d8 /tools/build.sh | |
| parent | 2f808f508985038cd47be774667e5b24b2e91f25 (diff) | |
Added c tool
Diffstat (limited to 'tools/build.sh')
| -rwxr-xr-x | tools/build.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/build.sh b/tools/build.sh new file mode 100755 index 0000000..256b3c9 --- /dev/null +++ b/tools/build.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +clang-format -i main.c + +# Linux +cc -std=c89 -DDEBUG -Wall -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined -o main main.c + +# RPi +# tcc -Wall main.c -o main + +# Plan9 +# pcc main.c -o main + +# ./main ../themes/apollo.svg + +cat ../themes/apollo.svg | ./main + +rm ./main |
