From d8d427b675582a27b6ebdc546129126d438761f7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 14 Dec 2020 15:28:17 +0100 Subject: [PATCH] Make cabal flags manual This prevents Cabal from automatically assigning flags in the constraint solver. This currently cannot result in issues: if any build configuration is valid, the default one is valid too. However, using 'manual' flags makes this future-proof against changes within Accelerate, and also changes within Cabal: with 'manual' we select the semantically correct type of flag. This should not adversely affect anything, especially since the flags are only meant for Accelerate developers and testers anyway. --- accelerate.cabal | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/accelerate.cabal b/accelerate.cabal index 2067c2589..33adb2d5e 100644 --- a/accelerate.cabal +++ b/accelerate.cabal @@ -144,6 +144,7 @@ custom-setup , cabal-doctest >= 1.0 flag debug + manual: True default: False description: Enable debug tracing messages. The following options are read from the @@ -221,6 +222,7 @@ flag debug . flag ekg + manual: True default: False description: Enable hooks for monitoring the running application using EKG. Implies @@ -257,20 +259,24 @@ flag ekg . flag bounds-checks - description: Enable bounds checking + manual: True default: True + description: Enable bounds checking flag unsafe-checks - description: Enable bounds checking in unsafe operations + manual: True default: False + description: Enable bounds checking in unsafe operations flag internal-checks - description: Enable internal consistency checks + manual: True default: False + description: Enable internal consistency checks -- Enabling this drastically increases build times -- See: https://gitlab.haskell.org/ghc/ghc/issues/15751 flag nofib + manual: True default: False description: Build the nofib test suite (required for backend testing)