diff options
author | Kenny Levinsen <kl@kl.wtf> | 2022-01-11 11:35:44 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-01-11 11:51:49 +0100 |
commit | 470e04e8da6e078da77190998b5e0c34e244839a (patch) | |
tree | 1cffb9e02576da59552acb7f8166613be4b989f5 /meson.build | |
parent | 6cb69a40c757cc44906fd928c43e60612c0e7ce8 (diff) |
meson: check: false on run_command
Future meson releases will change the default and warns when the
implicit default is used, breaking builds.
Explicitly set check: false to maintain behavior and silence warnings.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 4da9403b..0182b8f0 100644 --- a/meson.build +++ b/meson.build @@ -156,8 +156,8 @@ add_project_arguments('-DSYSCONFDIR="/@0@"'.format(join_paths(prefix, sysconfdir version = '"@0@"'.format(meson.project_version()) git = find_program('git', native: true, required: false) if git.found() - git_commit = run_command([git, 'rev-parse', '--short', 'HEAD']) - git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD']) + git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check: false) + git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false) if git_commit.returncode() == 0 and git_branch.returncode() == 0 version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format( meson.project_version(), |