Skip to content

Commit 32a0784

Browse files
dulacpkylefleming
authored andcommitted
Enable NEON for the arm64 architecture too
and fix the compilation for iOS in the same time
1 parent 92387b1 commit 32a0784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/ios/build_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def buildOne(self, arch, target, builddir, cmakeargs = []):
126126
toolchain = self.getToolchain(arch, target)
127127
cmakecmd = self.getCMakeArgs(arch, target) + \
128128
(["-DCMAKE_TOOLCHAIN_FILE=%s" % toolchain] if toolchain is not None else [])
129-
if arch.startswith("armv"):
129+
if arch.startswith("armv") or arch.startswith("arm64"):
130130
cmakecmd.append("-DENABLE_NEON=ON")
131131
cmakecmd.append(self.opencv)
132132
cmakecmd.extend(cmakeargs)

0 commit comments

Comments
 (0)