Skip to content

Commit

Permalink
undef simd for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Zilong-Li committed Dec 2, 2023
1 parent 0906ffc commit 791a10f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}

env:
Expand Down
2 changes: 1 addition & 1 deletion src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $(SHLIB) : HTSLIB
# LDFLAGS=$(shell "R CMD config LDFLAGS")

HTSLIB:
(cd ${HTSLIB_DIR} && ./configure && cp -f htscodecs.vcfppR htscodecs.mk && $(MAKE) -f Makefile.win libhts.a && cd ..)
(cd ${HTSLIB_DIR} && ./configure && cat config.flags.h >> config.h && $(MAKE) -f Makefile.win libhts.a && cd ..)


clean:
Expand Down
2 changes: 1 addition & 1 deletion src/htslib-1.18/Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ HTS_BUILD_POPCNT =
HTS_BUILD_SSE4_1 =

include htslib_vars.mk
include htscodecs_bundled.mk
include htscodecs.mk

# If not using GNU make, you need to copy the version number from version.sh
# into here.
Expand Down
5 changes: 5 additions & 0 deletions src/htslib-1.18/config.flags.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#undef HAVE_POPCNT
#undef HAVE_AVX2
#undef HAVE_AVX512
#undef HAVE_SSE4_1
#undef HAVE_SSSE3

0 comments on commit 791a10f

Please sign in to comment.