| 1 |
Description: trim unconditional -march=native. |
| 2 |
Author: Étienne Mollier <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
Last-Update: 2025-11-17 |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- abpoa.orig/CMakeLists.txt |
| 8 |
+++ abpoa/CMakeLists.txt |
| 9 |
@@ -181,9 +181,8 @@ |
| 10 |
target_compile_definitions(abpoa PRIVATE __AVX2__) |
| 11 |
|
| 12 |
else() |
| 13 |
- # Fallback: single compile with -march=native |
| 14 |
+ # Fallback: single compile |
| 15 |
target_sources(abpoa PRIVATE src/abpoa_align_simd.c) |
| 16 |
- target_compile_options(abpoa PRIVATE -march=native) |
| 17 |
endif() |
| 18 |
|
| 19 |
if(ABPOA_BUILD_EXE) |
| 20 |
--- abpoa.orig/Makefile |
| 21 |
+++ abpoa/Makefile |
| 22 |
@@ -49,9 +49,6 @@ |
| 23 |
# This is everything that gets bundled into our main library |
| 24 |
BASIC_OBJS = $(addprefix $(SRC_DIR)/, abpoa_align.o abpoa_graph.o abpoa_plot.o abpoa_seed.o abpoa_seq.o abpoa_output.o abpoa_simd.o kalloc.o kstring.o utils.o) |
| 25 |
|
| 26 |
-# Set default SIMD flags |
| 27 |
-SIMD_FLAG = -march=native |
| 28 |
- |
| 29 |
OBJS = ${BASIC_OBJS} $(addprefix $(SRC_DIR)/, abpoa_align_simd.o) |
| 30 |
|
| 31 |
# auto-detect some appropriate defaults -- this helps users in the common case of macOS with arm |
| 32 |
--- abpoa.orig/setup.py |
| 33 |
+++ abpoa/setup.py |
| 34 |
@@ -29,7 +29,7 @@ |
| 35 |
elif machine_arch.startswith("riscv"): |
| 36 |
simd_flag = ['-D__AVX2__'] |
| 37 |
else: # x86_64 |
| 38 |
- simd_flag=['-march=native'] |
| 39 |
+ simd_flag=[] |
| 40 |
if os.getenv('SSE4', False): |
| 41 |
simd_flag=['-msse4.1'] |
| 42 |
elif os.getenv('SSE2', False): |