Skip to content

Commit

Permalink
Merge pull request #577 from shizeeg/master
Browse files Browse the repository at this point in the history
Fix make `ols version` work with GNU sed and BSD/macOS sed
  • Loading branch information
DanielGavin authored Jan 11, 2025
2 parents 7fe579f + d8454be commit eec5781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ fi

version="$(git describe --tags --abbrev=7)"
version="${version%-*}:${version##*-}"
sed -i "" "s|VERSION :: .*|VERSION :: \"${version}\"|g" src/main.odin
sed "s|VERSION :: .*|VERSION :: \"${version}\"|g" src/main.odin > /tmp/main.odin.build && mv -f /tmp/main.odin.build src/main.odin

odin build src/ -show-timings -collection:src=src -out:ols -microarch:native -no-bounds-check -o:speed $@

0 comments on commit eec5781

Please sign in to comment.