[commit: vector] master: Build tests with -O0 and -O2 (8564f58)
Ian Lynagh
igloo at earth.li
Sun Aug 28 14:30:59 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/vector
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/8564f587277c7aca14aa07111d935e15a76f33d3
>---------------------------------------------------------------
commit 8564f587277c7aca14aa07111d935e15a76f33d3
Author: Roman Leshchinskiy <rl at cse.unsw.edu.au>
Date: Thu Aug 25 21:55:22 2011 +0000
Build tests with -O0 and -O2
>---------------------------------------------------------------
tests/vector-tests.cabal | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/tests/vector-tests.cabal b/tests/vector-tests.cabal
index 2879cb6..4cecc3b 100644
--- a/tests/vector-tests.cabal
+++ b/tests/vector-tests.cabal
@@ -14,9 +14,14 @@ Description:
Cabal-Version: >= 1.2
Build-Type: Simple
-Executable "vector-tests"
+
+Executable "vector-tests-O0"
Main-Is: Main.hs
+ Build-Depends: base >= 4 && < 5, template-haskell, vector == 0.7.2,
+ random,
+ QuickCheck >= 2, test-framework, test-framework-quickcheck2
+
Extensions: CPP,
ScopedTypeVariables,
PatternGuards,
@@ -31,8 +36,15 @@ Executable "vector-tests"
random,
QuickCheck >= 2, test-framework, test-framework-quickcheck2
- -- Don't let fusion occur or GHC will make our tests less informative in some cases :-)
- Ghc-Options: -O0
+ Extensions: CPP,
+ ScopedTypeVariables,
+ PatternGuards,
+ MultiParamTypeClasses,
+ FlexibleContexts,
+ Rank2Types,
+ TypeSynonymInstances,
+ TypeFamilies,
+ TemplateHaskell
- -- It's good practice to show all warnings, but since this is just test code let's ignore type sigs
+ Ghc-Options: -O2
Ghc-Options: -Wall -fno-warn-orphans -fno-warn-missing-signatures -rtsopts -threaded
More information about the Cvs-libraries
mailing list