Remove date macro on version for reproducible builds

cf https://reproducible-builds.org/
This commit is contained in:
Laurent Arnoud 2020-06-24 15:06:30 +02:00
parent fa6bf597cf
commit 5e044e5bba
No known key found for this signature in database
GPG Key ID: A79DAB2374F95DD5
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ else
if meson.source_root() == git_path
git_commit_hash = run_command([git.path(), 'describe', '--always', '--tags']).stdout().strip()
git_branch = run_command([git.path(), 'rev-parse', '--abbrev-ref', 'HEAD']).stdout().strip()
version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash, git_branch)
version = '"@0@ (branch \'@1@\')"'.format(git_commit_hash, git_branch)
add_project_arguments('-DVERSION=@0@'.format(version), language: 'cpp')
else
add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'cpp')