Commit 18459129 authored by Clint Adams's avatar Clint Adams

genvalidity: don't build testsuite with -N on architectures without SMP support

parent c218bc18
haskell-genvalidity (0.4.0.4-2) unstable; urgency=medium
* Don't build testsuite with -N on architectures without SMP support.
-- Clint Adams <clint@debian.org> Fri, 27 Apr 2018 09:00:27 -0400
haskell-genvalidity (0.4.0.4-1) unstable; urgency=low
* Initial release.
......
--- a/genvalidity.cabal
+++ b/genvalidity.cabal
@@ -59,12 +59,19 @@
Paths_genvalidity
default-language: Haskell2010
+flag smp
+ description: build test with -N
+ default: True
+
test-suite genvalidity-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs:
test
- ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing
+ if flag(smp)
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -fno-warn-name-shadowing
+ else
+ ghc-options: -threaded -Wall -fno-warn-name-shadowing
build-depends:
QuickCheck
, base
......@@ -5,5 +5,9 @@ DEB_SETUP_BIN_NAME = debian/hlibrary.setup
DEB_CABAL_PACKAGE = genvalidity
DEB_DEFAULT_COMPILER = ghc
ifeq (no,$(shell ghc --info | grep -q 'Support SMP.*NO' && echo no))
DEB_SETUP_GHC_CONFIGURE_ARGS += -f-smp
endif
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/hlibrary.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment