uxn/build.sh

19 lines
651 B
Bash
Raw Normal View History

2021-01-29 14:17:59 -05:00
#!/bin/bash
# format code
2021-01-29 15:14:37 -05:00
clang-format -i uxnasm.c
2021-01-29 14:17:59 -05:00
clang-format -i uxn.c
# remove old
2021-01-29 15:14:37 -05:00
rm -f ./uxnasm
2021-01-29 14:17:59 -05:00
rm -f ./uxn
2021-01-30 00:56:19 -05:00
rm -f ./boot.rom
2021-01-29 14:17:59 -05:00
# debug(slow)
2021-01-29 15:14:37 -05:00
cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined uxnasm.c -o uxnasm
2021-01-30 00:56:19 -05:00
cc -std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined uxn.c -o uxn
2021-01-29 14:17:59 -05:00
# run
2021-02-01 14:58:47 -05:00
./uxnasm examples/cond.usm boot.rom
2021-01-30 00:56:19 -05:00
./uxn boot.rom