Build work

This commit is contained in:
Synthasmagoria 2026-08-30 21:45:16 +02:00
commit 94e9860a25
4 changed files with 86 additions and 84 deletions

View file

@ -8,9 +8,7 @@ if [[ -v 1 ]]; then
if [ "$1" = "DEBUG" ]; then
ODIN_FLAGS="-debug"
elif [ "$1" = "RELEASE" ]; then
ODIN_FLAGS="-no-bounds-check -disable-assert -o:size -extra-linker-flags:\"-Wl,--gc-sections,-s\""
elif [ "$1" = "TEST" ]; then
ODIN_FLAGS="-o:minimal -no-bounds-check -disable-assert -extra-linker-flags:\"-Wl,--gc-sections,-s\""
ODIN_FLAGS="-o:minimal"
else
echo "Usage: <script> <DEBUG/RELEASE>"
exit 1