File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ matrix:
10
10
language : c
11
11
compiler : gcc
12
12
script : make arm_neon=1 aarch64=1
13
+ - arch : arm64
14
+ language : c
15
+ compiler : gcc
16
+ script : make -f Makefile.simde arm_neon=1 aarch64=1
13
17
- language : python
14
18
python : " 2.7"
15
19
before_install : pip install cython
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ OBJS= kthread.o kalloc.o misc.o bseq.o sketch.o sdust.o options.o index.o chain
6
6
PROG= minimap2
7
7
PROG_EXTRA= sdust minimap2-lite
8
8
LIBS= -lm -lz -lpthread
9
+ SSE4=
9
10
10
11
11
12
ifneq ($(arm_neon),) # if arm_neon is defined
@@ -16,6 +17,10 @@ else #if aarch64 is defined
16
17
endif
17
18
endif
18
19
20
+ ifeq ($(sse2only),) #if sse2only is not defined
21
+ SSE4+=-D__SSE4_1__
22
+ endif
23
+
19
24
ifneq ($(asan),)
20
25
CFLAGS+=-fsanitize=address
21
26
LIBS+=-fsanitize=address
@@ -49,16 +54,16 @@ sdust:sdust.c kalloc.o kalloc.h kdq.h kvec.h kseq.h ketopt.h sdust.h
49
54
$(CC) -D_SDUST_MAIN $(CFLAGS) $< kalloc.o -o $@ -lz
50
55
51
56
ksw2_ll_simde.o:ksw2_ll_sse.c ksw2.h kalloc.h
52
- $(CC) -c $(CFLAGS) -msse2 $(CPPFLAGS) $(INCLUDES) $< -o $@
57
+ $(CC) -c $(CFLAGS) -D__SSE2__ $(CPPFLAGS) $(INCLUDES) $< -o $@
53
58
54
59
ksw2_extz2_simde.o:ksw2_extz2_sse.c ksw2.h kalloc.h
55
- $(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
60
+ $(CC) -c $(CFLAGS) -D__SSE2__ $(SSE4) $(CPPFLAGS) $(INCLUDES) $< -o $@
56
61
57
62
ksw2_extd2_simde.o:ksw2_extd2_sse.c ksw2.h kalloc.h
58
- $(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
63
+ $(CC) -c $(CFLAGS) -D__SSE2__ $(SSE4) $(CPPFLAGS) $(INCLUDES) $< -o $@
59
64
60
65
ksw2_exts2_simde.o:ksw2_exts2_sse.c ksw2.h kalloc.h
61
- $(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
66
+ $(CC) -c $(CFLAGS) -D__SSE2__ $(SSE4) $(CPPFLAGS) $(INCLUDES) $< -o $@
62
67
63
68
# other non-file targets
64
69
You can’t perform that action at this time.
0 commit comments