-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel YU
committed
Feb 24, 2024
1 parent
3ec5461
commit d75bc2d
Showing
3 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: crc32c | ||
version: 0.2.0 | ||
synopsis: Haskell bindings for crc32c | ||
# description: | ||
version: 0.2.1 | ||
synopsis: crc32c | ||
description: Haskell bindings for crc32c | ||
homepage: https://github.com/leptonyu/crc32c#readme | ||
license: BSD3 | ||
license: BSD-3-Clause | ||
author: Daniel YU | ||
maintainer: [email protected] | ||
copyright: (c) Daniel YU | ||
|
@@ -24,30 +24,31 @@ library: | |
source-dirs: src | ||
dependencies: | ||
- base >= 4.9 && < 5 | ||
- bytestring >=0.10.8.2 | ||
- bytestring >=0.11.5 | ||
include-dirs: | ||
- include | ||
c-sources: | ||
- include/*.cc | ||
cxx-options: -std=c++11 | ||
when: | ||
- condition: arch(x86_64) | ||
- condition: arch(x86_64) && !os(windows)) | ||
then: | ||
cc-options: -std=c++11 -D__HAVE_SSE42=1 -D__HAVE_ARM64_CRC32C=0 -msse4.2 | ||
cxx-options: -DHAVE_SSE42=1 -msse4.2 | ||
else: | ||
when: | ||
- condition: arch(arm) | ||
then: | ||
cc-options: -std=c++11 -D__HAVE_SSE42=0 -D__HAVE_ARM64_CRC32C=1 | ||
cxx-options: -DHAVE_ARM64_CRC32C=1 | ||
else: | ||
cc-options: -std=c++11 -D__HAVE_SSE42=0 -D__HAVE_ARM64_CRC32C=0 | ||
cxx-options: -DHAVE_ARM64_CRC32C=0 | ||
|
||
tests: | ||
crc32c-test: | ||
source-dirs: test | ||
main: Spec.hs | ||
dependencies: | ||
- base >= 4.9 && < 5 | ||
- bytestring >=0.10.8.2 && <0.12 | ||
- bytestring >=0.11.5 && <0.12 | ||
- crc32c | ||
- hspec | ||
- hspec-core | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resolver: lts-20.11 | ||
compiler: ghc-9.2.5 | ||
resolver: lts-22.11 | ||
compiler: ghc-9.4.8 | ||
packages: | ||
- . |