@@ -16,8 +16,6 @@ homepage: https://github.com/TomMD/entropy
16bug-reports: https://github.com/TomMD/entropy/issues
16bug-reports: https://github.com/TomMD/entropy/issues
17stability: stable
17stability: stable
21build-type: Custom
19build-type: Custom
23-- ^^ Test for RDRAND support using 'ghc'
21-- ^^ Test for RDRAND support using 'ghc'
@@ -26,14 +24,6 @@ tested-with: GHC == 8.2.2
26-- data-files:
24-- data-files:
27extra-source-files: ./cbits/getrandom.c ./cbits/random_initialized.c ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
25extra-source-files: ./cbits/getrandom.c ./cbits/random_initialized.c ./cbits/rdrand.c, ./cbits/rdrand.h, README.md
29−-- Notice to compile with HaLVM the above 'build-type' must be changed
30−-- to 'Simple' instead of 'Custom'. The current build system naively
31−-- runs GHC to determine if the compiler supports RDRAND before proceeding.
33− description: Build for the HaLVM
37custom-setup
27custom-setup
38 setup-depends: Cabal >= 1.10 && < 3.7
28 setup-depends: Cabal >= 1.10 && < 3.7
39 , base < 5
29 , base < 5
@@ -50,10 +40,7 @@ library
50 if os(windows)
40 if os(windows)
51 other-modules: System.EntropyWindows
41 other-modules: System.EntropyWindows
54− other-modules: System.EntropyXen
56− other-modules: System.EntropyNix
43+ other-modules: System.EntropyNix
59 other-extensions: CPP, ForeignFunctionInterface, BangPatterns,
46 other-extensions: CPP, ForeignFunctionInterface, BangPatterns,
@@ -67,9 +54,6 @@ library
71− cpp-options: -DXEN -DHAVE_RDRAND
72− cc-options: -DXEN -DHAVE_RDRAND
73 if arch(x86_64)
57 if arch(x86_64)
74 cpp-options: -Darch_x86_64
58 cpp-options: -Darch_x86_64
75 cc-options: -Darch_x86_64 -O2
59 cc-options: -Darch_x86_64 -O2
@@ -85,9 +69,8 @@ library
85 cc-options: -DisWindows
69 cc-options: -DisWindows
86 extra-libraries: advapi32
70 extra-libraries: advapi32
89− Build-Depends: unix
72+ Build-Depends: unix
90− c-sources: cbits/getrandom.c cbits/random_initialized.c
73+ c-sources: cbits/getrandom.c cbits/random_initialized.c