aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorsh!zeeg <shizeeque@gmail.com>2025-01-01 21:07:46 +0300
committersh!zeeg <shizeeque@gmail.com>2025-01-01 21:07:46 +0300
commitde318f621ce24dc57f05af35c015826e3937dace (patch)
tree0c2eb152086705e448b0a431f9aef3a93b56e32e /build.sh
parent584f01b28ae25875fb25930cc66b2ba39a77811a (diff)
Add ols version
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index f887e8d..093e124 100755
--- a/build.sh
+++ b/build.sh
@@ -46,5 +46,8 @@ then
exit 0
fi
+version="$(git describe --tags --abbrev=7)"
+version="${version%-*}:${version##*-}"
+sed -i "s|VERSION :: .*|VERSION :: \"${version}\"|g" src/main.odin
odin build src/ -show-timings -collection:src=src -out:ols -microarch:native -no-bounds-check -o:speed $@