summaryrefslogtreecommitdiff
path: root/hmatrix.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r--hmatrix.cabal15
1 files changed, 13 insertions, 2 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal
index 3048217..51444af 100644
--- a/hmatrix.cabal
+++ b/hmatrix.cabal
@@ -86,10 +86,14 @@ flag finit
86 description: Force FPU initialization in foreing calls 86 description: Force FPU initialization in foreing calls
87 default: False 87 default: False
88 88
89flag fpudebug 89flag debugfpu
90 description: Check FPU stack 90 description: Check FPU stack
91 default: False 91 default: False
92 92
93flag debugnan
94 description: Check NaN
95 default: False
96
93library 97library
94 98
95 Build-Depends: base >= 4 && < 5, 99 Build-Depends: base >= 4 && < 5,
@@ -173,9 +177,12 @@ library
173 if flag(finit) 177 if flag(finit)
174 cpp-options: -DFINIT 178 cpp-options: -DFINIT
175 179
176 if flag(fpudebug) 180 if flag(debugfpu)
177 cc-options: -DFPUDEBUG 181 cc-options: -DFPUDEBUG
178 182
183 if flag(debugnan)
184 cc-options: -DNANDEBUG
185
179 if impl(ghc == 7.0.1) 186 if impl(ghc == 7.0.1)
180 cpp-options: -DNONORMVTEST 187 cpp-options: -DNONORMVTEST
181 188
@@ -209,3 +216,7 @@ source-repository head
209 location: http://patch-tag.com/r/aruiz/hmatrix 216 location: http://patch-tag.com/r/aruiz/hmatrix
210-- location: http://code.haskell.org/hmatrix 217-- location: http://code.haskell.org/hmatrix
211 218
219-- Test-Suite tests
220-- type: exitcode-stdio-1.0
221-- main-is: examples/tests.hs
222