diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-23 07:43:40 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-23 08:20:24 -0400 |
| commit | 2ae852b73a8f1bdc076835c2ebbc3e33ab10cb91 (patch) | |
| tree | b28e6b3492a93c52c85399d3ad18c2b981fc6ddb /build.sh | |
| parent | d08d5e3fe533fef482281f660177ec3f6c86b495 (diff) | |
Add version information to the build scripts
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,8 @@ #!/usr/bin/env bash +VERSION="dev-$(date -u '+%Y-%m-%d')-$(git rev-parse --short HEAD)" + if [[ $1 == "single_test" ]] then shift @@ -42,8 +44,8 @@ if [[ $1 == "debug" ]] then shift - odin build src/ -show-timings -collection:src=src -out:ols -microarch:native -no-bounds-check -use-separate-modules -debug $@ + odin build src/ -show-timings -collection:src=src -out:ols -microarch:native -no-bounds-check -use-separate-modules -define:VERSION=$VERSION-debug -debug $@ exit 0 fi -odin build src/ -show-timings -collection:src=src -out:ols -microarch:native -no-bounds-check -o:speed $@ +odin build src/ -show-timings -collection:src=src -out:ols -microarch:native -no-bounds-check -o:speed -define:VERSION=$VERSION $@ |