mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 21:45:03 +02:00
Only use SIMD if CPU supports it at runtime
This commit is contained in:
5
setup.py
5
setup.py
@@ -491,8 +491,9 @@ def init_env(
|
||||
cflags.append('-g3')
|
||||
ldflags.append('-lprofiler')
|
||||
|
||||
if not native_optimizations:
|
||||
cflags.append('-msse4.2')
|
||||
# SIMD instructions
|
||||
cflags.append('-msse4.2')
|
||||
cflags.append('-mavx2')
|
||||
library_paths: Dict[str, List[str]] = {}
|
||||
|
||||
def add_lpath(which: str, name: str, val: Optional[str]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user