Dont use intel intrinsics switches on ARM
This commit is contained in:
parent
103f5f3956
commit
73d657a21a
1 changed files with 6 additions and 2 deletions
8
setup.py
8
setup.py
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue