From debfdf94021a08e486b5c028686fe2cf5f772ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 7 Mar 2026 10:36:33 +0100 Subject: [PATCH] ci/win32: pre-generate SPIRV-Tools build-version.in Work around meson's cmake module not supporting OBJECT_DEPENDS [1], which broke the build after SPIRV-Tools removed the explicit spirv-tools-build-version target [2]. [1] https://github.com/mesonbuild/meson/issues/9062 [2] https://github.com/KhronosGroup/SPIRV-Tools/commit/54ad621f6e3fa758c1b80981489fcf0b62d2b752 --- ci/build-win32.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci/build-win32.ps1 b/ci/build-win32.ps1 index 0594bac50b..13fb73f725 100644 --- a/ci/build-win32.ps1 +++ b/ci/build-win32.ps1 @@ -53,6 +53,16 @@ project('shaderc', 'cpp', version: '2024.1') python = find_program('python3') run_command(python, '../shaderc_cmake/utils/git-sync-deps', check: true) +# Pre-generate build-version.inc for SPIRV-Tools. Meson's cmake module doesn't +# support CMake's OBJECT_DEPENDS source file property, so the custom command +# that generates this file is never triggered. +# https://github.com/mesonbuild/meson/issues/9062 +run_command(python, + '../shaderc_cmake/third_party/spirv-tools/utils/update_build_version.py', + '../shaderc_cmake/third_party/spirv-tools/CHANGES', + '../shaderc_cmake/third_party/spirv-tools/build-version.inc', + check: true) + cmake = import('cmake') opts = cmake.subproject_options() opts.add_cmake_defines({