From 94cc8727e8f3b76bed505aa5dec992e5c754b762 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sun, 22 Feb 2026 22:50:56 +0000 Subject: [PATCH] fixes for ios spirv tools --- .patch/spirv-tools/0003-ios-fix.patch | 21 +++++++++++++++++++++ externals/cpmfile.json | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .patch/spirv-tools/0003-ios-fix.patch diff --git a/.patch/spirv-tools/0003-ios-fix.patch b/.patch/spirv-tools/0003-ios-fix.patch new file mode 100644 index 0000000000..2486eba82a --- /dev/null +++ b/.patch/spirv-tools/0003-ios-fix.patch @@ -0,0 +1,21 @@ +diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt +index 7ab2319..0d6b382 100644 +--- a/source/CMakeLists.txt ++++ b/source/CMakeLists.txt +@@ -151,9 +151,6 @@ add_custom_command(OUTPUT ${SPIRV_TOOLS_BUILD_VERSION_INC} + COMMENT "Update build-version.inc in the SPIRV-Tools build directory (if necessary).") + # Convenience target for standalone generation of the build-version.inc file. + # This is not required for any dependence chain. +-add_custom_target(spirv-tools-build-version +- DEPENDS ${SPIRV_TOOLS_BUILD_VERSION_INC}) +-set_property(TARGET spirv-tools-build-version PROPERTY FOLDER "SPIRV-Tools build") + + list(APPEND PCH_DEPENDS + ${CORE_TABLES_HEADER_INC_FILE} +@@ -339,7 +336,7 @@ function(spirv_tools_default_target_options target) + set_property(TARGET ${target} PROPERTY FOLDER "SPIRV-Tools libraries") + spvtools_check_symbol_exports(${target}) + add_dependencies(${target} +- spirv-tools-build-version core_tables extinst_tables) ++ core_tables extinst_tables) + endfunction() diff --git a/externals/cpmfile.json b/externals/cpmfile.json index 9644647638..106c725562 100644 --- a/externals/cpmfile.json +++ b/externals/cpmfile.json @@ -110,7 +110,8 @@ ], "patches": [ "0001-netbsd-fix.patch", - "0002-allow-static-only.patch" + "0002-allow-static-only.patch", + "0003-ios-fix.patch" ] }, "spirv-headers": {