Browse Source

fixes for ios spirv tools

lizzie/ios-port-sud
lizzie 2 weeks ago
parent
commit
94cc8727e8
  1. 21
      .patch/spirv-tools/0003-ios-fix.patch
  2. 3
      externals/cpmfile.json

21
.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()

3
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": {

Loading…
Cancel
Save