aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qnnpack/fix-arm64-osx.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/qnnpack/fix-arm64-osx.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/qnnpack/fix-arm64-osx.patch')
-rw-r--r--vcpkg/ports/qnnpack/fix-arm64-osx.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/qnnpack/fix-arm64-osx.patch b/vcpkg/ports/qnnpack/fix-arm64-osx.patch
new file mode 100644
index 0000000..2b13997
--- /dev/null
+++ b/vcpkg/ports/qnnpack/fix-arm64-osx.patch
@@ -0,0 +1,18 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -32,12 +32,15 @@
+ IF(NOT IOS_ARCH MATCHES "^(i386|x86_64|armv7.*|arm64.*)$")
+ MESSAGE(FATAL_ERROR "Unrecognized IOS_ARCH = ${IOS_ARCH}")
+ ENDIF()
+ ELSE()
+ MESSAGE(FATAL_ERROR "CMAKE_SYSTEM_PROCESSOR is not defined")
+ ENDIF()
++ELSEIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
++ # on macOS, arm64 is called arm64
++ SET(CMAKE_SYSTEM_PROCESSOR "aarch64")
+ ELSEIF(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3-6]86|x86_64|armv[5-8].*|aarch64)$")
+ MESSAGE(FATAL_ERROR "Unrecognized CMAKE_SYSTEM_PROCESSOR = ${CMAKE_SYSTEM_PROCESSOR}")
+ ENDIF()
+
+ IF(NOT CMAKE_SYSTEM_NAME)
+ MESSAGE(FATAL_ERROR "CMAKE_SYSTEM_NAME not defined")