summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-23 07:43:40 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-23 08:20:24 -0400
commit2ae852b73a8f1bdc076835c2ebbc3e33ab10cb91 (patch)
treeb28e6b3492a93c52c85399d3ad18c2b981fc6ddb /build.sh
parentd08d5e3fe533fef482281f660177ec3f6c86b495 (diff)
Add version information to the build scripts
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 5700fdc..6168842 100755
--- a/build.sh
+++ b/build.sh
@@ -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 $@