From 5e044e5bba141c61f6a383032e31df3c7c2a1595 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Wed, 24 Jun 2020 15:06:30 +0200 Subject: [PATCH] Remove date macro on version for reproducible builds cf https://reproducible-builds.org/ --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8d6dc16..addd0e0 100644 --- a/meson.build +++ b/meson.build @@ -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')