From bbf07a5b76cf196007adcfe2bfc954440843ce2f Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Sat, 20 Feb 2010 13:14:04 +0000 Subject: safe-cheap flag --- hmatrix.cabal | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'hmatrix.cabal') diff --git a/hmatrix.cabal b/hmatrix.cabal index 3d58fa2..4f10e34 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal @@ -1,5 +1,5 @@ Name: hmatrix -Version: 0.8.3.1 +Version: 0.8.3.2 License: GPL License-file: LICENSE Author: Alberto Ruiz @@ -56,6 +56,11 @@ flag unsafe description: Compile the library with bound checking disabled. default: False +flag safe-cheap + description: use slower non-blocking "safe" foreign calls + to GSL special functions. + default: False + library Build-Depends: base >= 3 && < 5, @@ -143,6 +148,11 @@ library if flag(unsafe) cpp-options: -DUNSAFE + if flag(safe-cheap) + cpp-options: -DSAFE_CHEAP=safe + else + cpp-options: -DSAFE_CHEAP=unsafe + if impl(ghc < 6.10.2) cpp-options: -DFINIT -- cgit v1.2.3