Enable NEON for the arm64 architecture too

and fix the compilation for iOS in the same time
This commit is contained in:
Pierre Dulac 2016-01-05 15:34:39 +01:00
parent 92387b1ef8
commit 262a52f306

View File

@ -126,7 +126,7 @@ class Builder:
toolchain = self.getToolchain(arch, target)
cmakecmd = self.getCMakeArgs(arch, target) + \
(["-DCMAKE_TOOLCHAIN_FILE=%s" % toolchain] if toolchain is not None else [])
if arch.startswith("armv"):
if arch.startswith("armv") or arch.startswith("arm64"):
cmakecmd.append("-DENABLE_NEON=ON")
cmakecmd.append(self.opencv)
cmakecmd.extend(cmakeargs)