New: There should be a pre-defined macro specifying the latest git commit id (GIT_COMMIT_ID)
Open
@ravi688 is already working on this.
Since Apr 17, 2026.
enhancement
- Dominant language
- C++
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
git_commit_id = run_command('git', 'rev-parse', 'HEAD', check : true).stdout().strip()
defines = [
'-DGIT_COMMIT_ID="' + git_commit_id + '"',
'-DBUILDMASTER_VERSION_MAJOR=' + meson.project_version().split('.')[0],
'-DBUILDMASTER_VERSION_MINOR=' + meson.project_version().split('.')[1],
'-DBUILDMASTER_VERSION_MICRO=' + meson.project_version().split('.')[2],
'-DMESON_BUILD_TEMPLATE_PATH="' + join_paths(meson_build_template_install_dir, 'meson.build.template') + '"'
]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.