From b9e1e75a101578fd0774cbfd9fe7aa0b9a56dccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Ch=C3=A9ron?= Date: Wed, 11 Mar 2020 19:15:32 +0100 Subject: [PATCH] Fix support_sse on i386 architecture On i386 compilation failed with support_sse enabled and support_aesni disabled. This enables the minimum required instruction set, guarded with an architecture condition. --- cryptonite.cabal | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cryptonite.cabal b/cryptonite.cabal index 31bd64f..68cb78f 100644 --- a/cryptonite.cabal +++ b/cryptonite.cabal @@ -363,6 +363,8 @@ Library if arch(x86_64) || flag(support_sse) CPP-options: -DSUPPORT_SSE + if arch(i386) + CC-options: -msse2 C-sources: cbits/argon2/argon2.c include-dirs: cbits/argon2