diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-02-20 13:14:04 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-02-20 13:14:04 +0000 |
commit | bbf07a5b76cf196007adcfe2bfc954440843ce2f (patch) | |
tree | 5c3162567bfdd6761b2217641f49dd9ef5480aae /hmatrix.cabal | |
parent | 7f94a70d57d44c1b0d63226684c008edde2678c9 (diff) |
safe-cheap flag
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index 3d58fa2..4f10e34 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: hmatrix | 1 | Name: hmatrix |
2 | Version: 0.8.3.1 | 2 | Version: 0.8.3.2 |
3 | License: GPL | 3 | License: GPL |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
@@ -56,6 +56,11 @@ flag unsafe | |||
56 | description: Compile the library with bound checking disabled. | 56 | description: Compile the library with bound checking disabled. |
57 | default: False | 57 | default: False |
58 | 58 | ||
59 | flag safe-cheap | ||
60 | description: use slower non-blocking "safe" foreign calls | ||
61 | to GSL special functions. | ||
62 | default: False | ||
63 | |||
59 | library | 64 | library |
60 | 65 | ||
61 | Build-Depends: base >= 3 && < 5, | 66 | Build-Depends: base >= 3 && < 5, |
@@ -143,6 +148,11 @@ library | |||
143 | if flag(unsafe) | 148 | if flag(unsafe) |
144 | cpp-options: -DUNSAFE | 149 | cpp-options: -DUNSAFE |
145 | 150 | ||
151 | if flag(safe-cheap) | ||
152 | cpp-options: -DSAFE_CHEAP=safe | ||
153 | else | ||
154 | cpp-options: -DSAFE_CHEAP=unsafe | ||
155 | |||
146 | if impl(ghc < 6.10.2) | 156 | if impl(ghc < 6.10.2) |
147 | cpp-options: -DFINIT | 157 | cpp-options: -DFINIT |
148 | 158 | ||