From 12e86b20caa9e42f33400a85e0bdacebd118ccd5 Mon Sep 17 00:00:00 2001 From: neauoire Date: Tue, 16 Feb 2021 17:41:03 -0800 Subject: [PATCH] Added opt build step --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 0c71945..d27619f 100755 --- a/build.sh +++ b/build.sh @@ -16,7 +16,8 @@ clang-format -i uxn.c # Emulator clang-format -i emulator.c rm -f ./bin/emulator -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 emulator.c -L/usr/local/lib -lSDL2 -o bin/emulator +# 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 emulator.c -L/usr/local/lib -lSDL2 -o bin/emulator +cc uxn.c emulator.c -std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas -L/usr/local/lib -lSDL2 -o bin/emulator # run ./bin/assembler examples/drag.usm bin/boot.rom