Commit 18459129 authored by Clint Adams's avatar Clint Adams
Browse files

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

parent c218bc18
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
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.
+23 −0
Original line number Diff line number Diff line
--- 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
+1 −0
Original line number Diff line number Diff line
no--N
+4 −0
Original line number Diff line number Diff line
@@ -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