[commit: packages/Cabal] ghc-head: GHC-7.6+ on ARM does support -threaded (c71baf1)

git at git.haskell.org git
Fri Oct 11 20:33:09 UTC 2013


Repository : ssh://git at git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/packages/Cabal.git/commitdiff/c71baf170a0a0d7144970238b378d8fa215821d6

>---------------------------------------------------------------

commit c71baf170a0a0d7144970238b378d8fa215821d6
Author: Duncan Coutts <duncan at community.haskell.org>
Date:   Thu Sep 19 11:18:44 2013 +0100

    GHC-7.6+ on ARM does support -threaded
    
    Thanks to Austin Seipp <austin at well-typed.com>
    (cherry picked from commit 03712ed182f3ef4f77f4d59c73e1e3ce71de16a6)


>---------------------------------------------------------------

c71baf170a0a0d7144970238b378d8fa215821d6
 cabal-install/cabal-install.cabal |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cabal-install/cabal-install.cabal b/cabal-install/cabal-install.cabal
index 56b1580..9941848 100644
--- a/cabal-install/cabal-install.cabal
+++ b/cabal-install/cabal-install.cabal
@@ -142,7 +142,8 @@ executable cabal
     else
       build-depends: unix >= 2.0 && < 2.8
 
-    if arch(arm)
+    if arch(arm) && impl(ghc < 7.6)
+       -- older ghc on arm does not supprt -threaded
        cc-options:  -DCABAL_NO_THREADED
     else
        ghc-options: -threaded




More information about the ghc-commits mailing list