From 9dcef3451daa24319fd352a0d19ed9ab8f60422d Mon Sep 17 00:00:00 2001 From: John Galt Date: Thu, 21 Apr 2016 10:45:23 -0700 Subject: [PATCH] Decoupled -DARCH_X86_64 and support_rdrand --- cryptonite.cabal | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cryptonite.cabal b/cryptonite.cabal index 7571d05..9d5a343 100644 --- a/cryptonite.cabal +++ b/cryptonite.cabal @@ -238,8 +238,10 @@ Library if arch(i386) CPP-options: -DARCH_X86 - if flag(support_rdrand) && arch(x86_64) - CPP-options: -DARCH_X86_64 + if arch(x86_64) + CPP-options: -DARCH_X86_64 + + if flag(support_rdrand) CPP-options: -DSUPPORT_RDRAND Other-modules: Crypto.Random.Entropy.RDRand c-sources: cbits/cryptonite_rdrand.c