build: Fix ninja warning message on Windows

We currently run 'git describe --match' to obtain the current version,
but meson doesn't properly quote/escape the pattern string on Windows.

As a result, "fatal: Not a valid object name .ninja_log" is printed
when compiling on Windows systems. Compilation still works, but the
warning is annoying and misleading.

Currently we don't actually need the pattern matching functionality
(which is why things still work), so simply remove it as a workaround.
This commit is contained in:
Henrik Gramner
2021-02-08 17:27:37 +01:00
committed by Henrik Gramner
co-authored by Henrik Gramner
parent 958846150a
commit 69268d3a4f
+1 -3
View File
@@ -25,9 +25,7 @@
# Revision file (vcs_version.h) generation
dav1d_git_dir = join_paths(dav1d_src_root, '.git')
rev_target = vcs_tag(command: [
'git', '--git-dir', dav1d_git_dir,
'describe', '--tags', '--long',
'--match', '?.*.*', '--always'
'git', '--git-dir', dav1d_git_dir, 'describe', '--long', '--always'
],
input: 'vcs_version.h.in',
output: 'vcs_version.h'