exe_name := "tcom" version := shell("./scripts/generate_version.sh") common_flags := '-error-pos-style:unix -collection:tcom=src -disallow-do -show-timings -define:VERSION=' + version alias b := build alias c := check alias d := debug alias r := run alias br := build-run [arg('profile', pattern='(debug|fastdebug|release)')] build profile='debug' *custom_flags: odin build src \ -out:{{exe_name}} {{common_flags}} {{ if profile == 'debug' { '-debug' } else if profile == 'fastdebug' { '-debug -o:speed' } else if profile == 'release' { '-o:speed' } else { '' } }} \ {{custom_flags}} check *custom_flags: odin check src -debug {{common_flags}} {{custom_flags}} debug *args: raddbg ./{{exe_name}} {{args}} run *args='': ./{{exe_name}} {{args}} test *args='': odin test src {{common_flags}} -debug {{args}} build-run: build run