aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/torch-th/fix-arm64-osx-config.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/torch-th/fix-arm64-osx-config.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/torch-th/fix-arm64-osx-config.patch')
-rw-r--r--vcpkg/ports/torch-th/fix-arm64-osx-config.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/torch-th/fix-arm64-osx-config.patch b/vcpkg/ports/torch-th/fix-arm64-osx-config.patch
new file mode 100644
index 0000000..de6b001
--- /dev/null
+++ b/vcpkg/ports/torch-th/fix-arm64-osx-config.patch
@@ -0,0 +1,13 @@
+diff --git a/lib/TH/cmake/FindARM.cmake b/lib/TH/cmake/FindARM.cmake
+index 2dcb2a2..9d68601 100644
+--- a/lib/TH/cmake/FindARM.cmake
++++ b/lib/TH/cmake/FindARM.cmake
+@@ -45,7 +45,7 @@ ELSEIF(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+ CPUINFO)
+
+ #neon instruction can be found on the majority part of modern ARM processor
+- STRING(REGEX REPLACE "^.*(neon).*$" "\\1" NEON_THERE ${CPUINFO})
++ STRING(REGEX REPLACE "^.*(neon).*$" "\\1" NEON_THERE "${CPUINFO}")
+ STRING(COMPARE EQUAL "neon" "${NEON_THERE}" NEON_TRUE)
+ IF (NEON_TRUE)
+ set(NEON_FOUND true CACHE BOOL "NEON available on host")