File: fix-baseline.patch

package info (click to toggle)
libslow5lib 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,280 kB
  • sloc: ansic: 13,123; python: 1,353; sh: 600; makefile: 98; cpp: 40
file content (21 lines) | stat: -rw-r--r-- 821 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: remove fpu flags that are not present on ancient CPUs
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-07-02
--- libslow5lib.orig/setup.py
+++ libslow5lib/setup.py
@@ -48,15 +48,6 @@
 # extra_compile_args = []
 # os.environ["CFLAGS"] = '-g -Wall -O2 -std=c99'
 
-if platform.system() != 'Darwin':
-    arch=platform.machine()
-    if arch in ["aarch64"]:
-        extra_compile_args.append('-D__ARM_NEON__')
-    elif arch in ["armv7l"]:
-        extra_compile_args.append('-mfpu=neon')
-    elif arch in ["x86_64"]:
-        extra_compile_args.extend(['-DSTREAMVBYTE_SSSE3=1', '-mssse3'])   # WARNING: ancient x86_64 CPUs don't have SSSE3
-# note that on macos, for now we just let it compile without simd
 
 # include_dirs = ['include/', np.get_include() ]
 libraries = ['m', 'z', 'streamvbyte']