Dont use intel intrinsics switches on ARM

This commit is contained in:
Kovid Goyal
2023-11-14 15:29:01 +05:30
parent 103f5f3956
commit 73d657a21a

View File

@@ -497,8 +497,12 @@ def init_env(
ldflags.append('-lprofiler')
# SIMD instructions
cflags.append('-msse4.2')
cflags.append('-mavx2')
if is_arm:
if not is_macos:
cflags.append('-mfpu=neon')
else:
cflags.append('-msse4.2')
cflags.append('-mavx2')
library_paths: Dict[str, List[str]] = {}
def add_lpath(which: str, name: str, val: Optional[str]) -> None: