summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAlex Reinking <alex_reinking@berkeley.edu>2022-09-05 14:59:21 -0400
committerGitHub <noreply@github.com>2022-09-05 11:59:21 -0700
commite6443c1b7199ca17848ab2ae9b954a6ce63d1a65 (patch)
tree0ebb7e664f708dda393d65a08918e7cd4d337771 /.github
parent3054d61f703d609995798f872fc86b462617c294 (diff)
downloadwabt-e6443c1b7199ca17848ab2ae9b954a6ce63d1a65.tar.gz
wabt-e6443c1b7199ca17848ab2ae9b954a6ce63d1a65.tar.bz2
wabt-e6443c1b7199ca17848ab2ae9b954a6ce63d1a65.zip
Fix git describe behavior (#1979)
* Rename CMAKE_PROJECT_VERSION to WABT_VERSION_STRING CMAKE_PROJECT_VERSION is a standard variable that is controlled by the project() command. Renaming our usage to WABT_VERSION_STRING better describes the purpose of the variable and avoids surprises down the line. * Use git describe output to annotate version string Before this commit, the attempt to add the output of git describe to the version string printed by $wasm-tool --version was bugged. It would always print the three-part version number (like 1.0.29). After this commit, the output of `git describe --tags` is used to append a description to the version number in the form of: "ver (git~desc)". For example: $ ./wasm2c --version 1.0.29 (git~1.0.29-27-gf63184ef) If this command returns a tag equal in name to the current version, nothing is appended. If this command fails, a NOTICE (rather than a WARNING) is printed (only if the project is top-level), and only the bare version number is used. If the source code is not living in the git repository then, again, only the bare number is used, but no warning is printed. Fixes #1977 Fixes #1978
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions