Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrypt.cabal: Make it unbuildable on arches other that x86_64 #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions scrypt.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,19 @@ source-repository head
library
exposed-modules: Crypto.Scrypt
hs-source-dirs: src
build-depends:
base == 4.*,
base64-bytestring >= 0.1,
bytestring >= 0.9,
entropy >= 0.2

if arch(x86_64)
build-depends:
base == 4.*,
base64-bytestring >= 0.1,
bytestring >= 0.9,
entropy >= 0.2
else
-- The underlying C library requires SSE and related instructions which
-- are only available on x86_64, so we make this unbuildable on other
-- arches.
build-depends:
base < 0

ghc-options: -Wall
ghc-prof-options: -auto-all
Expand Down