mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
Code to easily compare SIMD and scalar decode in a live instance
Also remove -mtune=intel as it fails with clang
This commit is contained in:
4
setup.py
4
setup.py
@@ -712,15 +712,11 @@ def get_source_specific_cflags(env: Env, src: str) -> List[str]:
|
||||
if src in ('kitty/simd-string-128.c', 'kitty/simd-string-256.c'):
|
||||
if env.binary_arch.isa in (ISA.AMD64, ISA.X86):
|
||||
ans.append('-msse4.2' if '128' in src else '-mavx2')
|
||||
if not env.native_optimizations:
|
||||
ans.append('-mtune=intel')
|
||||
elif env.binary_arch.isa != ISA.ARM64:
|
||||
ans.append('-DKITTY_NO_SIMD')
|
||||
elif src.startswith('3rdparty/base64/lib/arch/'):
|
||||
if env.binary_arch.isa in (ISA.AMD64, ISA.X86):
|
||||
q = src.split(os.path.sep)
|
||||
if not env.native_optimizations:
|
||||
ans.append('-mtune=intel')
|
||||
if 'sse3' in q:
|
||||
ans.append('-msse3')
|
||||
elif 'sse41' in q:
|
||||
|
||||
Reference in New Issue
Block a user