From 69268d3a4f096164cebc0db7571e18c32779c300 Mon Sep 17 00:00:00 2001 From: Henrik Gramner Date: Mon, 8 Feb 2021 17:27:37 +0100 Subject: 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. --- include/meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/meson.build b/include/meson.build index c83bfcd..e597184 100644 --- a/include/meson.build +++ b/include/meson.build @@ -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' -- cgit v1.2.3