build: Use the commit hash as fallback for the built-in version.

The `git describe` command currently fails because there are no tags yet. Using `--always` lets it fall back to the current commit hash.

Signed-off-by: Jens Peters <jp7677@gmail.com>
This commit is contained in:
Jens Peters 2020-07-30 14:25:52 +02:00 committed by Hans-Kristian Arntzen
parent b47dae95e5
commit a0314c4818
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ if cpu_family == 'x86'
endif
vkd3d_version = vcs_tag(
command : ['git', 'describe', '--dirty=+'],
command : ['git', 'describe', '--always', '--dirty=+'],
input : 'vkd3d_version.c.in',
output : 'vkd3d_version.c')