d3d12/dzn/spirv2dxil: Require version library

Fixes: b8328c9 ("microsoft/compiler: Blacklist DXIL validator 1.6 from 20348 SDK")

Closes: #6952

Closes: #6959

v2: Always lookup version library on Windows

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17837>
(cherry picked from commit ec46a85c4f)
This commit is contained in:
pal1000
2022-08-01 19:14:19 +03:00
committed by Dylan Baker
parent 081fd3a4f4
commit 5c8aaa70e8
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@
"description": "d3d12/dzn/spirv2dxil: Require version library",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "b8328c9664ed3f11924be37a243464236812a3a2"
},

View File

@@ -1884,7 +1884,7 @@ endif
# Be explicit about only using this lib on Windows, to avoid picking
# up random libs with the generic name 'libversion'
dep_version = null_dep
if with_opencl_spirv and host_machine.system() == 'windows'
if host_machine.system() == 'windows'
dep_version = cpp.find_library('version')
endif